EODUMP;
$this->
assertDumpMatchesFormat($expectedDump,
$e);
$this->
assertSame(['foo'
],
$ref);
} public function testDefaultSettingsOnError() { $e =
$this->
getTestError('foo'
);
$expectedDump = <<<'EODUMP'
Error {
#message: "foo"
#code: 0
#file: "%sExceptionCasterTest.php"
#line: %d
trace: {
%s%eTests%eCaster%eExceptionCasterTest.php:%d {
Symfony\Component\VarDumper\Tests\Caster\ExceptionCasterTest->getTestError($msg): Error
› {
› return new \Error(''.$msg);
› }
}
%s%eTests%eCaster%eExceptionCasterTest.php:%d { …}
%A