Skip to content

Commit

Permalink
fix assertion message for assertHeaderContains
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuchlak committed Oct 31, 2024
1 parent 278ac33 commit a8bf0bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Browser/KernelBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ final public function assertHeaderContains(string $header, string $expected): se
{
Assert::that($this->client()->getResponse()->headers->get($header))
->isNotNull('Header "{header}" is not present in the response.', ['header' => $header])
->contains($expected, 'Header "{header}" is "{actual}", but "{expected}" expected.', ['header' => $header])
->contains($expected, 'Header "{header}" value "{haystack}" is expected to contain "{needle}".', [
'header' => $header,
])
;

return $this;
Expand Down

0 comments on commit a8bf0bc

Please sign in to comment.