Skip to content

Commit d5c5257

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: [HttpKernel] Adjust tests to new "class not found" error message format. Don't call createMock with an array of interfaces. [FrameworkBundle] Fix Tests on PHPUnit 9.3. [WebProfilerBundle] Fix Tests on PHPUnit 9.3. esmtp error not being thrown properly [Yaml Parser] fixed Parser to skip comments when inlining sequences [DI] fix generating preload file when cache_dir is outside project_dir Fix CacheCollectorPass with decorated cache pools [PhpUnitBridge] CoverageListenerTrait update for PHPUnit 8.5/9.x Remove invalid instantiation declaration [PropertyInfo] Fix typed collections in PHP 7.4
2 parents 3f5edcc + 135f964 commit d5c5257

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
@@ -71,7 +71,7 @@ public function testAssertResponseRedirectsWithLocationAndStatusCode()
7171
{
7272
$this->getResponseTester(new Response('', 302, ['Location' => 'https://example.com/']))->assertResponseRedirects('https://example.com/', 302);
7373
$this->expectException(AssertionFailedError::class);
74-
$this->expectExceptionMessage('is redirected and has header "Location" with value "https://example.com/" and status code is 301.');
74+
$this->expectExceptionMessageMatches('#(:?\( )?is redirected and has header "Location" with value "https://example\.com/" (:?\) )?and status code is 301\.#');
7575
$this->getResponseTester(new Response('', 302))->assertResponseRedirects('https://example.com/', 301);
7676
}
7777

0 commit comments

Comments
 (0)