Skip to content

Commit 135f964

Browse files
committed
[FrameworkBundle] Fix Tests on PHPUnit 9.3.
1 parent c822ce3 commit 135f964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Test/WebTestCaseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testAssertResponseRedirectsWithLocationAndStatusCode()
7070
{
7171
$this->getResponseTester(new Response('', 302, ['Location' => 'https://example.com/']))->assertResponseRedirects('https://example.com/', 302);
7272
$this->expectException(AssertionFailedError::class);
73-
$this->expectExceptionMessage('is redirected and has header "Location" with value "https://example.com/" and status code is 301.');
73+
$this->expectExceptionMessageMatches('#(:?\( )?is redirected and has header "Location" with value "https://example\.com/" (:?\) )?and status code is 301\.#');
7474
$this->getResponseTester(new Response('', 302))->assertResponseRedirects('https://example.com/', 301);
7575
}
7676

0 commit comments

Comments
 (0)