Skip to content

Commit 17ee34e

Browse files
Merge branch '5.0' into 5.1
* 5.0: Parse and render anonymous classes correctly on php 8 Enable APCu for the php 8 build. [Process] Fix failing test on php 8. [HttpKernel] fix test Make PHP 8 green on Travis Revert "[Cache] allow DBAL v3" [PropertyAccessor] Added missing property path on php 8. Don't execute tests with DBAL 2.x on php 8.
2 parents 29751f0 + 3c9b50d commit 17ee34e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/ProcessTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -988,21 +988,20 @@ public function provideMethodsThatNeedATerminatedProcess()
988988

989989
public function testWrongSignal()
990990
{
991-
$this->expectException('Symfony\Component\Process\Exception\RuntimeException');
992991
if ('\\' === \DIRECTORY_SEPARATOR) {
993992
$this->markTestSkipped('POSIX signals do not work on Windows');
994993
}
995994

995+
$this->expectException(RuntimeException::class);
996+
996997
$process = $this->getProcessForCode('sleep(38);');
997998
$process->start();
998999
try {
9991000
$process->signal(-4);
10001001
$this->fail('A RuntimeException must have been thrown');
1001-
} catch (RuntimeException $e) {
1002+
} finally {
10021003
$process->stop(0);
10031004
}
1004-
1005-
throw $e;
10061005
}
10071006

10081007
public function testDisableOutputDisablesTheOutput()

0 commit comments

Comments
 (0)