public function constructorThrowsExceptionOnInvalidDomain($domain) { new Cookie('foo', 'bar', 0, null, $domain); }