Skip to content

Commit 061d503

Browse files
committed
Fix skip section in error handler test 7
PHPUnit isn't loaded here, as it runs in a separate process. Failure to include the autoloader results in the test being executed.
1 parent 0cf6658 commit 061d503

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/phpt/error_handler_007.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ ErrorHandler::notify() fatals with a throwing error handler
33
--SKIPIF--
44
<?php
55

6+
// Warning: This relies on the current working directory in which PHPUnit is executed.
7+
// If the directory is not the root of the project, this will silently fail and execute the test below.
8+
require __DIR__ . "/vendor/autoload.php";
9+
610
$series = PHPUnit_Runner_Version::series();
711
list($major, $minor) = explode(".", $series);
812

0 commit comments

Comments
 (0)