From 569bf1569b144e5b1f778537effd3dc74590b378 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 2 Feb 2013 17:38:59 -0600 Subject: [PATCH] Update tests/Cookie/CookieTest.php Fixed the second portion of testCookiesAreCreatedWithProperOptions() so that it uses the $c2 variable all the way through, as I believe was intended. --- tests/Cookie/CookieTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 +}