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')); }
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)); }