Skip to content

Commit b97c70e

Browse files
committed
minor symfony#61784 [Security] make test forward compatible (xabbuh)
This PR was merged into the 7.4 branch. Discussion ---------- [Security] make test forward compatible | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT see the high deps failure in symfony#61760 Commits ------- e978c2e make test forward compatible
2 parents fa1b331 + e978c2e commit b97c70e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Security/Http/Tests/RememberMe/PersistentRememberMeHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function testConsumeRememberMeCookieValid()
115115
$rememberParts = explode(':', $rememberMeDetails->toString(), 4);
116116
$cookieParts = explode(':', $cookie->getValue(), 4);
117117

118-
$this->assertSame($rememberParts[0], $cookieParts[0]); // class
118+
$this->assertSame(method_exists(PersistentToken::class, 'getClass') ? $rememberParts[0] : '', $cookieParts[0]); // class
119119
$this->assertSame($rememberParts[1], $cookieParts[1]); // identifier
120120
$this->assertEqualsWithDelta($lastUsed->getTimestamp() + 31536000, (int) $cookieParts[2], 2); // expire
121121
$this->assertNotSame($rememberParts[3], $cookieParts[3]); // value

0 commit comments

Comments
 (0)