File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ public function testLogout()
4343 $ this ->assertEquals ('foo.foo ' , $ cookie ->getDomain ());
4444 $ this ->assertEquals (Cookie::SAMESITE_STRICT , $ cookie ->getSameSite ());
4545 $ this ->assertTrue ($ cookie ->isSecure ());
46- $ this ->assertTrue ($ cookie ->isPartitioned ());
46+ if (method_exists (Cookie::class, 'isPartitioned ' )) {
47+ $ this ->assertTrue ($ cookie ->isPartitioned ());
48+ }
4749 $ this ->assertTrue ($ cookie ->isCleared ());
4850
4951 $ cookie = $ cookies ['' ]['/ ' ]['foo2 ' ];
@@ -52,7 +54,9 @@ public function testLogout()
5254 $ this ->assertNull ($ cookie ->getDomain ());
5355 $ this ->assertNull ($ cookie ->getSameSite ());
5456 $ this ->assertFalse ($ cookie ->isSecure ());
55- $ this ->assertFalse ($ cookie ->isPartitioned ());
57+ if (method_exists (Cookie::class, 'isPartitioned ' )) {
58+ $ this ->assertFalse ($ cookie ->isPartitioned ());
59+ }
5660 $ this ->assertTrue ($ cookie ->isCleared ());
5761 }
5862}
You can’t perform that action at this time.
0 commit comments