Skip to content

Commit

Permalink
Update HttpCookieTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Jun 26, 2022
1 parent 84c2e8e commit 90eacda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/webfiori/tests/http/HttpCookieTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ public function testConstructor03() {
$cookie->setDomain();
$this->assertEquals('new-cookie=super; path=/; SameSite=Lax', $cookie.'');

$this->assertEquals('set-cookie :new-cookie=super; path=/; SameSite=Lax', $cookie->getHeader().'');
$this->assertEquals('set-cookie: new-cookie=super; path=/; SameSite=Lax', $cookie->getHeader().'');
$cookie->setDomain('webfiori.com');
$this->assertEquals('set-cookie :new-cookie=super; domain=webfiori.com; path=/; SameSite=Lax', $cookie->getHeader().'');
$this->assertEquals('set-cookie: new-cookie=super; domain=webfiori.com; path=/; SameSite=Lax', $cookie->getHeader().'');
$cookie->kill();
$this->assertEquals(date(DATE_COOKIE, time() - 60*60*24), $cookie->getLifetime());
}
Expand Down

0 comments on commit 90eacda

Please sign in to comment.