public function testMatchesPathChecksPath() { $cookie = new Cookie(); $cookie->setAttribute('path', '/resource'); $this->assertTrue($cookie->matchesPath('/resource/123')); $this->assertFalse($cookie->matchesPath('/login')); $cookie = new Cookie(); $this->assertTrue($cookie->matchesPath('/resource/123')); }