Beispiel #1
0
 public function testMatchesPath()
 {
     $cookie = new puzzle_cookie_SetCookie();
     $this->assertTrue($cookie->matchesPath('/foo'));
     $cookie->setPath('/foo');
     $this->assertTrue($cookie->matchesPath('/foo'));
     $this->assertTrue($cookie->matchesPath('/foo/bar'));
     $this->assertFalse($cookie->matchesPath('/bar'));
 }
Beispiel #2
0
 public function __callback_clear_3(puzzle_cookie_SetCookie $cookie)
 {
     return !($cookie->getName() == $this->_closure_clear_name && $cookie->matchesPath($this->_closure_clear_path) && $cookie->matchesDomain($this->_closure_clear_domain));
 }