Skip to content

Commit f265ffe

Browse files
committed
feature #14796 [FrameworkBundle] Document assertResponseFormatSame() (javiereguiluz)
This PR was squashed before being merged into the 5.3-dev branch. Discussion ---------- [FrameworkBundle] Document assertResponseFormatSame() Fixes #14772. Given that "format" is something not as standard as Content-Type, MIME type, etc. I decided to add some short description of the value that you'll get. But we can remove it if you prefer. Thanks. Commits ------- f3fdf98 [FrameworkBundle] Document assertResponseFormatSame()
2 parents 37948c0 + f3fdf98 commit f265ffe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

testing/functional_tests_assertions.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ Response
3939
- ``assertResponseHasCookie()``
4040
- ``assertResponseNotHasCookie()``
4141
- ``assertResponseCookieValueSame()``
42+
- ``assertResponseFormatSame()`` (the response format is the value returned by
43+
the :method:`Symfony\Component\HttpFoundation\Response::getFormat` method).
44+
45+
.. versionadded:: 5.3
46+
47+
The ``assertResponseFormatSame()`` method was introduced in Symfony 5.3.
4248

4349
Request
4450
~~~~~~~

0 commit comments

Comments
 (0)