Skip to content
Browse files

Targeting also the new autoloader. For BC, fallback to the old one

  • Loading branch information...
1 parent 0f0cbc1 commit a1fb73ea5b2eb69987b27bcc65e1abf7436640f2 @giorgiosironi giorgiosironi committed Jun 13, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 PHPUnit/Autoload.php
View
4 PHPUnit/Autoload.php
@@ -214,7 +214,9 @@ function phpunit_autoload($class = NULL)
require_once 'PHPUnit/Extensions/Database/Autoload.php';
}
-if (PHPUnit_Util_Filesystem::fileExistsInIncludePath('PHPUnit/Extensions/SeleniumTestCase/Autoload.php')) {
+if (PHPUnit_Util_Filesystem::fileExistsInIncludePath('PHPUnit/Extensions/SeleniumCommon/Autoload.php')) {
+ require_once 'PHPUnit/Extensions/SeleniumCommon/Autoload.php';
+} else if (PHPUnit_Util_Filesystem::fileExistsInIncludePath('PHPUnit/Extensions/SeleniumTestCase/Autoload.php')) {
require_once 'PHPUnit/Extensions/SeleniumTestCase/Autoload.php';
}

0 comments on commit a1fb73e

Please sign in to comment.
Something went wrong with that request. Please try again.