diff --git a/src/Util/PHP/AbstractPhpProcess.php b/src/Util/PHP/AbstractPhpProcess.php index 7b00bd4686a..b36b4d6ae9f 100644 --- a/src/Util/PHP/AbstractPhpProcess.php +++ b/src/Util/PHP/AbstractPhpProcess.php @@ -27,7 +27,6 @@ use function unserialize; use __PHP_Incomplete_Class; use ErrorException; -use PHPUnit\Event; use PHPUnit\Event\Code\TestMethod; use PHPUnit\Event\Code\Throwable; use PHPUnit\Event\Facade; @@ -360,11 +359,6 @@ static function ($errno, $errstr, $errfile, $errline): void $test, $riskyException, ); - - Event\Facade::emitter()->testConsideredRisky( - $test->valueObjectForEvents(), - $riskyException->getMessage() - ); } elseif (!empty($skipped)) { $result->addFailure( $test, diff --git a/tests/end-to-end/event/test-risky-no-assertions-isolation.phpt b/tests/end-to-end/event/test-risky-no-assertions-isolation.phpt new file mode 100644 index 00000000000..afe7f3592c7 --- /dev/null +++ b/tests/end-to-end/event/test-risky-no-assertions-isolation.phpt @@ -0,0 +1,43 @@ +--TEST-- +The right events are emitted in the right order for a test that is run in an isolated process and is considered risky because it did not perform assertions +--SKIPIF-- +