You are here

public function CookieTest::testGetDomain in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testGetDomain()
  2. 8.0 vendor/symfony/browser-kit/Tests/CookieTest.php \Symfony\Component\BrowserKit\Tests\CookieTest::testGetDomain()
Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/CookieTest.php \Symfony\Component\HttpFoundation\Tests\CookieTest::testGetDomain()

File

vendor/symfony/http-foundation/Tests/CookieTest.php, line 111

Class

CookieTest
CookieTest.

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetDomain() {
  $cookie = new Cookie('foo', 'bar', 3600, '/', '.myfoodomain.com');
  $this
    ->assertEquals('.myfoodomain.com', $cookie
    ->getDomain(), '->getDomain() returns the domain name on which the cookie is valid');
}