Ejemplo n.º 1
0
 /**
  * Test the inclusion of an escaped quote in a quoted cookie value.
  *
  *  @return void
  */
 public function testPublicStoreCookiesQuotedEscapedQuote()
 {
     $headers = array('Set-Cookie: SID="hello\\"world"; path=/; domain=.example.com');
     $this->object->storeCookies($this->serviceUrl_1, $headers);
     $cookies = $this->object->getCookies($this->serviceUrl_1b);
     $this->assertInternalType('array', $cookies);
     $this->assertEquals('hello"world', $cookies['SID']);
     $this->assertEquals(1, count($cookies));
 }