/**
* @after
*/
protected function tearDownVarDumper(): void
{ $this->varDumperConfig
['casters'
] =
[];
$this->varDumperConfig
['flags'
] = null;
} public function assertDumpEquals(mixed
$expected, mixed
$data, int
$filter = 0, string
$message = ''
) { $this->
assertSame($this->
prepareExpectation($expected,
$filter),
$this->
getDump($data, null,
$filter),
$message);
} public function assertDumpMatchesFormat(mixed
$expected, mixed
$data, int
$filter = 0, string
$message = ''
) { $this->
assertStringMatchesFormat($this->
prepareExpectation($expected,
$filter),
$this->
getDump($data, null,
$filter),
$message);
} protected function getDump(mixed
$data, string|int
$key = null, int
$filter = 0
): ?string
{ if (null ===
$flags =
$this->varDumperConfig
['flags'
]) { $flags =
getenv('DUMP_LIGHT_ARRAY'
) ? CliDumper::DUMP_LIGHT_ARRAY : 0;