Skip to content

Commit ba20061

Browse files
committed
Merge pull request #242 from j20/patch-1
Bug fix: Updated tests/Cookie/CookieTest.php
2 parents 426697c + 569bf15 commit ba20061

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Cookie/CookieTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ public function testCookiesAreCreatedWithProperOptions()
2525
$this->assertEquals('/path', $c->getPath());
2626

2727
$c2 = $cookie->forever('color', 'blue');
28-
$value = $cookie->getEncrypter()->decrypt($c->getValue());
28+
$value = $cookie->getEncrypter()->decrypt($c2->getValue());
2929
$this->assertEquals('blue', $value);
30-
$this->assertFalse($c->isHttpOnly());
31-
$this->assertTrue($c->isSecure());
32-
$this->assertEquals('/domain', $c->getDomain());
33-
$this->assertEquals('/path', $c->getPath());
30+
$this->assertFalse($c2->isHttpOnly());
31+
$this->assertTrue($c2->isSecure());
32+
$this->assertEquals('/domain', $c2->getDomain());
33+
$this->assertEquals('/path', $c2->getPath());
3434
}
3535

3636

@@ -60,4 +60,4 @@ public function getCreator()
6060
));
6161
}
6262

63-
}
63+
}

0 commit comments

Comments
 (0)