From 2ccd546b620fa30d1791dd791d9a1e3d51e19135 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Fri, 28 Aug 2015 14:22:05 +0800 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phpunit/classes/util.php b/lib/phpunit/classes/util.php index ede3dfd0896..93dc5f29375 100644 --- a/lib/phpunit/classes/util.php +++ b/lib/phpunit/classes/util.php @@ -515,7 +515,7 @@ class phpunit_util extends testing_util { $template = ' - + . ';