Index: trunk/phase3/maintenance/tests/phpunit |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | |
5 | 5 | require( dirname( __FILE__ ) . '/../commandLine.inc' ); |
6 | 6 | // XXX: This can go away if everyone switches to PHPUnit 3.5 |
7 | | -if ( file_exists( get_include_path() . '/PHPUnit/Autoload.php' ) ) { |
| 7 | +if ( file_get_contents( 'PHPUnit/Autoload.php', true ) !== false ) { |
8 | 8 | // Works for PHPUnit >= 3.5 |
9 | 9 | require_once 'PHPUnit/Autoload.php'; |
10 | 10 | } else { |