isRaw() 공개 메소드

Checks if the cookie value should be sent with no url encoding.
public isRaw ( ) : boolean
리턴 boolean
예제 #1
0
 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());
 }
예제 #2
0
    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);
    }