public function CookieTest::testGetDomain

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/CookieTest.php, line 82

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');
}