getPath() public method

Gets the path of the cookie.
public getPath ( ) : string
return string The cookie path
 public function testGetPath()
 {
     $cookie = new Cookie('foo', 'bar', 0);
     $this->assertEquals('/', $cookie->getPath(), '->getPath() returns / is no path is defined');
     $cookie = new Cookie('foo', 'bar', 0, '/foo');
     $this->assertEquals('/foo', $cookie->getPath(), '->getPath() returns the cookie path');
 }