diff --git a/components/var_dumper/advanced.rst b/components/var_dumper/advanced.rst index 36ebcc41dad..394301d03da 100644 --- a/components/var_dumper/advanced.rst +++ b/components/var_dumper/advanced.rst @@ -206,9 +206,17 @@ The output format of a dumper can be fine tuned by the two flags ``DUMP_STRING_LENGTH`` and ``DUMP_LIGHT_ARRAY`` which are passed as a bitmap in the third constructor argument. They can also be set via environment variables when using -:method:`assertDumpEquals($dump, $data, $message) ` +:method:`assertDumpEquals($dump, $data, $filter, $message) ` during unit testing. +The ``$filter`` argument of ``assertDumpEquals()`` can be used to pass a +bit field of ``Caster::EXCLUDE_*`` constants and influences the expected +output produced by the different casters. + +.. versionadded:: 3.4 + The ``$filter`` argument of ``assertDumpEquals()`` was introdcued in + Symfony 3.4. + .. versionadded:: 3.1 The ``DUMP_STRING_LENGTH`` and ``DUMP_LIGHT_ARRAY`` flags were introduced in Symfony 3.1.