function BrowserHasCookie::toString
Overrides SelfDescribing::toString
1 call to BrowserHasCookie::toString()
- BrowserHasCookie::failureDescription in vendor/
symfony/ browser-kit/ Test/ Constraint/ BrowserHasCookie.php
File
-
vendor/
symfony/ browser-kit/ Test/ Constraint/ BrowserHasCookie.php, line 26
Class
Namespace
Symfony\Component\BrowserKit\Test\ConstraintCode
public function toString() : string {
$str = \sprintf('has cookie "%s"', $this->name);
if ('/' !== $this->path) {
$str .= \sprintf(' with path "%s"', $this->path);
}
if ($this->domain) {
$str .= \sprintf(' for domain "%s"', $this->domain);
}
return $str;
}