Skip to content

Commit 6db519e

Browse files
soyukanicolas-grekas
authored andcommitted
[PhpUnitBridge] add PolyfillTestCaseTrait::expectExceptionMessageMatches to provide FC with recent phpunit versions
1 parent 3e40e87 commit 6db519e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/ProcessTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ protected function tearDown(): void
5050
public function testInvalidCwd()
5151
{
5252
$this->expectException('Symfony\Component\Process\Exception\RuntimeException');
53-
$this->expectExceptionMessageRegExp('/The provided cwd ".*" does not exist\./');
53+
$this->expectExceptionMessageMatches('/The provided cwd ".*" does not exist\./');
5454
try {
5555
// Check that it works fine if the CWD exists
5656
$cmd = new Process(['echo', 'test'], __DIR__);

0 commit comments

Comments
 (0)