getDomain() public method

Gets the domain of the cookie.
public getDomain ( ) : string
return string The cookie domain
コード例 #1
0
ファイル: CookieTest.php プロジェクト: rfc1483/padel
 public function testGetDomain()
 {
     $cookie = new Cookie('foo', 'bar', 0, '/', 'foo.com');
     $this->assertEquals('foo.com', $cookie->getDomain(), '->getDomain() returns the cookie domain');
 }