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