Ejemplo n.º 1
0
 public function testMatchesPath()
 {
     $cookie = new Cookie();
     $this->assertTrue($cookie->matchesPath('/foo'));
     $cookie->setPath('/foo');
     $this->assertTrue($cookie->matchesPath('/foo'));
     $this->assertTrue($cookie->matchesPath('/foo/bar'));
     $this->assertFalse($cookie->matchesPath('/bar'));
 }