From 671fa2c85d25871854217c09183b0687609dcbf4 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 21 Jul 2017 18:01:36 +0200 Subject: [PATCH] add filter argument to assertDumpEquals() --- components/var_dumper/advanced.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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.