MDL-51236 phpunit: Prevent testsuite name conflicts
commit4463f996c40eb99360c6b856f34a71566ba6cf37
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 28 Aug 2015 06:22:05 +0000 (28 14:22 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 28 Aug 2015 06:22:07 +0000 (28 14:22 +0800)
treec0fe3d32e6ccf10510ceb5426ee55b5b079ce783
parent6d392b302793f193616028dc92c0d98ed5015596
MDL-51236 phpunit: Prevent testsuite name conflicts

The testsuite name is fed straight into a class_exists() in
PHPUnit_Framework_TestSuite. In some cases, e.g. cachestore_static, the
class does exist, it's then fed into a ReflectionClass, and the test fails.

The testsuite needs to not conflict with any classes which could be
autoloaded in Moodle core.
lib/phpunit/classes/util.php