function ResponseHasCookie::toString
Overrides SelfDescribing::toString
1 call to ResponseHasCookie::toString()
- ResponseHasCookie::failureDescription in vendor/
symfony/ http-foundation/ Test/ Constraint/ ResponseHasCookie.php
File
-
vendor/
symfony/ http-foundation/ Test/ Constraint/ ResponseHasCookie.php, line 27
Class
Namespace
Symfony\Component\HttpFoundation\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;
}