Skip to content

Commit 7f24f25

Browse files
test: remove redundant test/assertion in CookieTest (#195)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent d2d0569 commit 7f24f25

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tests/src/Unit/CookieTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ public function testSerialize(): void
2626
->setSecure(true)
2727
->setValue('Test value');
2828

29-
$this->assertTrue($cookie->hasSecure());
30-
$this->assertNotNull($cookie->isSecure());
31-
$this->assertTrue($cookie->hasHttpOnly());
32-
$this->assertNotNull($cookie->isHttpOnly());
33-
3429
$serialized = $serializer->serialize($cookie, 'json');
3530
$this->assertEquals(
3631
[
@@ -62,9 +57,7 @@ public function testSerializeWithoutOptionalAttributes(): void
6257
->setValue('Test value');
6358

6459
$this->assertFalse($cookie->hasSecure());
65-
$this->assertNull($cookie->isSecure());
6660
$this->assertFalse($cookie->hasHttpOnly());
67-
$this->assertNull($cookie->isHttpOnly());
6861

6962
$serialized = $serializer->serialize($cookie, 'json');
7063
$this->assertEquals(

0 commit comments

Comments
 (0)