public function testRawCookie() { $cookie = new Cookie('foo', 'bar', 3600, '/', '.myfoodomain.com', false, true); $this->assertFalse($cookie->isRaw()); $cookie = new Cookie('foo', 'bar', 3600, '/', '.myfoodomain.com', false, true, true); $this->assertTrue($cookie->isRaw()); }
public function testRawCookie() { $cookie = new Cookie('foo', 'b a r', 0, '/', null, false, false); $this->assertFalse($cookie->isRaw()); $this->assertEquals('foo=b+a+r; path=/', (string) $cookie); $cookie = new Cookie('foo', 'b+a+r', 0, '/', null, false, false, true); $this->assertTrue($cookie->isRaw()); $this->assertEquals('foo=b+a+r; path=/', (string) $cookie); }