getValue() public method

Gets the value of the cookie.
public getValue ( ) : string
return string The cookie value
Beispiel #1
0
 public function testGetValue()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertEquals('bar', $cookie->getValue(), '->getValue() returns the cookie value');
     $cookie = new Cookie('foo', 'bar%3Dbaz', null, '/', '', false, true, true);
     // raw value
     $this->assertEquals('bar=baz', $cookie->getValue(), '->getValue() returns the urldecoded cookie value');
 }
 public function testGetValue()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertEquals('bar', $cookie->getValue(), '->getValue() returns the cookie value');
 }