diff --git a/tests/Cookie/CookieTest.php b/tests/Cookie/CookieTest.php index 568d73af3c04..6e3554cccbbe 100644 --- a/tests/Cookie/CookieTest.php +++ b/tests/Cookie/CookieTest.php @@ -25,12 +25,12 @@ public function testCookiesAreCreatedWithProperOptions() $this->assertEquals('/path', $c->getPath()); $c2 = $cookie->forever('color', 'blue'); - $value = $cookie->getEncrypter()->decrypt($c->getValue()); + $value = $cookie->getEncrypter()->decrypt($c2->getValue()); $this->assertEquals('blue', $value); - $this->assertFalse($c->isHttpOnly()); - $this->assertTrue($c->isSecure()); - $this->assertEquals('/domain', $c->getDomain()); - $this->assertEquals('/path', $c->getPath()); + $this->assertFalse($c2->isHttpOnly()); + $this->assertTrue($c2->isSecure()); + $this->assertEquals('/domain', $c2->getDomain()); + $this->assertEquals('/path', $c2->getPath()); } @@ -60,4 +60,4 @@ public function getCreator() )); } -} \ No newline at end of file +}