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()
43
43
$ this ->assertEquals ('foo.foo ' , $ cookie ->getDomain ());
44
44
$ this ->assertEquals (Cookie::SAMESITE_STRICT , $ cookie ->getSameSite ());
45
45
$ this ->assertTrue ($ cookie ->isSecure ());
46
- $ this ->assertTrue ($ cookie ->isPartitioned ());
46
+ if (method_exists (Cookie::class, 'isPartitioned ' )) {
47
+ $ this ->assertTrue ($ cookie ->isPartitioned ());
48
+ }
47
49
$ this ->assertTrue ($ cookie ->isCleared ());
48
50
49
51
$ cookie = $ cookies ['' ]['/ ' ]['foo2 ' ];
@@ -52,7 +54,9 @@ public function testLogout()
52
54
$ this ->assertNull ($ cookie ->getDomain ());
53
55
$ this ->assertNull ($ cookie ->getSameSite ());
54
56
$ this ->assertFalse ($ cookie ->isSecure ());
55
- $ this ->assertFalse ($ cookie ->isPartitioned ());
57
+ if (method_exists (Cookie::class, 'isPartitioned ' )) {
58
+ $ this ->assertFalse ($ cookie ->isPartitioned ());
59
+ }
56
60
$ this ->assertTrue ($ cookie ->isCleared ());
57
61
}
58
62
}
You can’t perform that action at this time.
0 commit comments