Skip to content

Commit a476cb4

Browse files
committed
test: add test for exception
1 parent b1cb02c commit a476cb4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/SetMethodTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,18 @@ public function test_should_be_available_from_the_facade(): void
217217
);
218218
}
219219

220+
/**
221+
* @runInSeparateProcess
222+
*/
223+
public function test_should_fail_when_expires_is_wrong(): void
224+
{
225+
$this->expectException(CookieException::class);
226+
227+
$cookie = new Cookie();
228+
229+
$cookie->set('foo', 'bar', 'foo');
230+
}
231+
220232
private function getCookieDetails(string $name): array
221233
{
222234
$cookies = $this->cookie->getCookieDetails();

0 commit comments

Comments
 (0)