Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit a1fb73ea5b2eb69987b27bcc65e1abf7436640f2 1 parent 0f0cbc1
@giorgiosironi giorgiosironi authored
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';
}
Please sign in to comment.
Something went wrong with that request. Please try again.