Skip to content

Commit

Permalink
Setting the "use autoloader" switch to false on class_exists
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brobie committed Dec 17, 2012
1 parent fbfc0b1 commit e6a4b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHPUnit/Util/GlobalState.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

1 comment on commit e6a4b20

@GuillermoCerezo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that line! It helped a lot with Yii + PHPUnit + Windows.

Please sign in to comment.