Overrides Constraint::matches
protected function matches($other) : bool { if (!$other instanceof Response) { return false; } $location = $other->headers ->get('Location'); if (null === $location) { return false; } return $this->toFullUrl($this->expectedValue) === $this->toFullUrl($location); }