From e6a4b20980489c7b824812b470fd864fe2174efe Mon Sep 17 00:00:00 2001 From: Ben Robie Date: Mon, 17 Dec 2012 11:41:49 -0600 Subject: [PATCH] Setting the "use autoloader" switch to false on class_exists We found this need because: 1. We do now have PHP_Invoker installed. 2. We have multiple autoloaders registered 3. When the class_exists was checking for "PHP_Invoker" it was automatically trying to autoload it and failing in a way that fatally ended our phpunit tests. --- PHPUnit/Util/GlobalState.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPUnit/Util/GlobalState.php b/PHPUnit/Util/GlobalState.php index 7f10096de90..8d89b51c78c 100644 --- a/PHPUnit/Util/GlobalState.php +++ b/PHPUnit/Util/GlobalState.php @@ -406,7 +406,7 @@ public static function phpunitFiles() */ protected static function addDirectoryContainingClassToPHPUnitFilesList($className, $parent = 1) { - if (!class_exists($className)) { + if (!class_exists($className, false)) { return; }