[FrameworkBundle] Fix Tests on PHPUnit 9.3.
This commit is contained in:
parent
f0bf853a86
commit
8bc36d7420
@ -70,7 +70,7 @@ class WebTestCaseTest extends TestCase
|
||||
{
|
||||
$this->getResponseTester(new Response('', 302, ['Location' => 'https://example.com/']))->assertResponseRedirects('https://example.com/', 302);
|
||||
$this->expectException(AssertionFailedError::class);
|
||||
$this->expectExceptionMessage('is redirected and has header "Location" with value "https://example.com/" and status code is 301.');
|
||||
$this->expectExceptionMessageMatches('#(:?\( )?is redirected and has header "Location" with value "https://example\.com/" (:?\) )?and status code is 301\.#');
|
||||
$this->getResponseTester(new Response('', 302))->assertResponseRedirects('https://example.com/', 301);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user