diff --git a/tests/SapphireTest.php b/tests/SapphireTest.php index 7e7abf2c3..bd6a3380d 100644 --- a/tests/SapphireTest.php +++ b/tests/SapphireTest.php @@ -33,7 +33,7 @@ require_once(MANIFEST_FILE); $hasPhpUnit = false; $paths = explode(PATH_SEPARATOR, ini_get('include_path')); foreach($paths as $path) { - if(file_exists("$path/PHPUnit/Framework.php")) $hasPhpUnit = true; + if(@file_exists("$path/PHPUnit/Framework.php")) $hasPhpUnit = true; } if($hasPhpUnit) { diff --git a/tests/TestRunner.php b/tests/TestRunner.php index 5dd0313ef..d702cc9e7 100644 --- a/tests/TestRunner.php +++ b/tests/TestRunner.php @@ -4,7 +4,7 @@ $hasPhpUnit = false; $paths = explode(PATH_SEPARATOR, ini_get('include_path')); foreach($paths as $path) { - if(file_exists("$path/PHPUnit/Framework.php")) $hasPhpUnit = true; + if(@file_exists("$path/PHPUnit/Framework.php")) $hasPhpUnit = true; } if($hasPhpUnit) {