Skip to content

Commit aee664e

Browse files
committed
[FrameworkBundle] Document assertResponseFormatSame()
1 parent 37948c0 commit aee664e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

testing/functional_tests_assertions.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ Response
3939
- ``assertResponseHasCookie()``
4040
- ``assertResponseNotHasCookie()``
4141
- ``assertResponseCookieValueSame()``
42+
- ``assertResponseFormatSame()``, it returns the format associated to the MIME
43+
type of the ``Content-Type`` of the response (e.g. it returns ``jsonld`` for
44+
``application/ld+json`` content type).
45+
46+
.. versionadded:: 5.x
47+
48+
The ``assertResponseFormatSame()`` method was introduced in Symfony 5.3.
4249

4350
Request
4451
~~~~~~~

0 commit comments

Comments
 (0)