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

Commit 7853153

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

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)