Skip to content

Commit 2a11e79

Browse files
committed
minor #8207 add filter argument to assertDumpEquals() (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- add filter argument to assertDumpEquals() This fixes #8172. Commits ------- 671fa2c add filter argument to assertDumpEquals()
2 parents d9460be + 671fa2c commit 2a11e79

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

components/var_dumper/advanced.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,17 @@ The output format of a dumper can be fine tuned by the two flags
206206
``DUMP_STRING_LENGTH`` and ``DUMP_LIGHT_ARRAY`` which are passed as a bitmap
207207
in the third constructor argument. They can also be set via environment
208208
variables when using
209-
:method:`assertDumpEquals($dump, $data, $message) <Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait::assertDumpEquals>`
209+
:method:`assertDumpEquals($dump, $data, $filter, $message) <Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait::assertDumpEquals>`
210210
during unit testing.
211211

212+
The ``$filter`` argument of ``assertDumpEquals()`` can be used to pass a
213+
bit field of ``Caster::EXCLUDE_*`` constants and influences the expected
214+
output produced by the different casters.
215+
216+
.. versionadded:: 3.4
217+
The ``$filter`` argument of ``assertDumpEquals()`` was introdcued in
218+
Symfony 3.4.
219+
212220
.. versionadded:: 3.1
213221
The ``DUMP_STRING_LENGTH`` and ``DUMP_LIGHT_ARRAY`` flags were introduced
214222
in Symfony 3.1.

0 commit comments

Comments
 (0)