示例#1
0
 public function testMatchesPorts()
 {
     $cookie = new Cookie();
     // Always matches when nothing is set
     $this->assertTrue($cookie->matchesPort(2));
     $cookie->setPorts(array(1, 2));
     $this->assertTrue($cookie->matchesPort(2));
     $this->assertFalse($cookie->matchesPort(100));
 }