Symfony\Component\BrowserKit\Cookie::getName PHP Method

getName() public method

Gets the name of the cookie.
public getName ( ) : string
return string The cookie name
    public function getName()
    {
        return $this->name;
    }

Usage Example

コード例 #1
0
ファイル: CookieTest.php プロジェクト: rfc1483/padel
 public function testGetName()
 {
     $cookie = new Cookie('foo', 'bar');
     $this->assertEquals('foo', $cookie->getName(), '->getName() returns the cookie name');
 }