function testPathValidity() { $cookie = new SimpleCookie("name", "value", "/path"); $this->assertFalse($cookie->isValidPath("/")); $this->assertTrue($cookie->isValidPath("/path/")); $this->assertTrue($cookie->isValidPath("/path/more")); }
public function testPathValidity() { $cookie = new SimpleCookie('name', 'value', '/path'); $this->assertFalse($cookie->isValidPath('/')); $this->assertTrue($cookie->isValidPath('/path/')); $this->assertTrue($cookie->isValidPath('/path/more')); }