Skip to content

Commit 569bf15

Browse files
author
Jason
committed
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.
1 parent efd2044 commit 569bf15

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)