Ejemplo n.º 1
0
 /**
  * Test matching a domain cookie.
  *
  * @return void
  */
 public function testProtectedCookieMatchesTargetDomainCookie()
 {
     $headers = array('Set-Cookie: message="hello world"; path=/; domain=.example.com');
     $cookies = $this->object->parseCookieHeaders($headers, 'otherhost.example.com');
     $this->assertTrue($this->object->cookieMatchesTarget($cookies[0], parse_url('http://service.example.com/make_changes.php')));
 }