Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 65f5078

Browse files
bug #36408 [PhpUnitBridge] add PolyfillTestCaseTrait::expectExceptionMessageMatches to provide FC with recent phpunit versions (soyuka)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [PhpUnitBridge] add PolyfillTestCaseTrait::expectExceptionMessageMatches to provide FC with recent phpunit versions | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | na | License | MIT | Doc PR | na expectExceptionMessageRegExp is deprecated coming phpunit 8.5.3 see sebastianbergmann/phpunit#4133 Not sure if I need to add something else lmk. Commits ------- cfd5a29eaf [PhpUnitBridge] add PolyfillTestCaseTrait::expectExceptionMessageMatches to provide FC with recent phpunit versions
2 parents a226057 + 7853153 commit 65f5078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Guard/Tests/Provider/GuardAuthenticationProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function testSupportsChecksGuardAuthenticatorsTokenOrigin()
190190
public function testAuthenticateFailsOnNonOriginatingToken()
191191
{
192192
$this->expectException('Symfony\Component\Security\Core\Exception\AuthenticationException');
193-
$this->expectExceptionMessageRegExp('/second_firewall_0/');
193+
$this->expectExceptionMessageMatches('/second_firewall_0/');
194194
$authenticatorA = $this->getMockBuilder(AuthenticatorInterface::class)->getMock();
195195
$authenticators = [$authenticatorA];
196196

0 commit comments

Comments
 (0)