+ if (is_string($filter)) {
+ @trigger_error(sprintf('The $message argument of the "%s()" method at 3rd position is deprecated since Symfony 3.4 and will be moved at 4th position in 4.0.', __METHOD__), E_USER_DEPRECATED);
+ $message = $filter;
+ $filter = 0;
+ }
+
+ $this->assertStringMatchesFormat(rtrim($dump), $this->getDump($data, null, $filter), $message);