We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 061d503 commit e9fd621Copy full SHA for e9fd621
test/phpt/error_handler_007.phpt
@@ -3,7 +3,10 @@ ErrorHandler::notify() fatals with a throwing error handler
3
--SKIPIF--
4
<?php
5
6
-// Warning: This relies on the current working directory in which PHPUnit is executed.
+if (!file_exists(__DIR__ . "/vendor/autoload.php")) {
7
+ die("Skipped: Cannot detect PHPUnit version, run tests from project root.");
8
+}
9
+
10
// If the directory is not the root of the project, this will silently fail and execute the test below.
11
require __DIR__ . "/vendor/autoload.php";
12
0 commit comments