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