Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/var-dumper/Test/VarDumperTestTrait.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
19 */ | 19 */ |
20 trait VarDumperTestTrait | 20 trait VarDumperTestTrait |
21 { | 21 { |
22 public function assertDumpEquals($dump, $data, $filter = 0, $message = '') | 22 public function assertDumpEquals($dump, $data, $filter = 0, $message = '') |
23 { | 23 { |
24 if (is_string($filter)) { | 24 if (\is_string($filter)) { |
25 @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); | 25 @trigger_error(sprintf('The $message argument of the "%s()" method at the 3rd position is deprecated since Symfony 3.4 and will be moved at the 4th position in 4.0.', __METHOD__), E_USER_DEPRECATED); |
26 $message = $filter; | 26 $message = $filter; |
27 $filter = 0; | 27 $filter = 0; |
28 } | 28 } |
29 | 29 |
30 $this->assertSame(rtrim($dump), $this->getDump($data, null, $filter), $message); | 30 $this->assertSame(rtrim($dump), $this->getDump($data, null, $filter), $message); |
31 } | 31 } |
32 | 32 |
33 public function assertDumpMatchesFormat($dump, $data, $filter = 0, $message = '') | 33 public function assertDumpMatchesFormat($dump, $data, $filter = 0, $message = '') |
34 { | 34 { |
35 if (is_string($filter)) { | 35 if (\is_string($filter)) { |
36 @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); | 36 @trigger_error(sprintf('The $message argument of the "%s()" method at the 3rd position is deprecated since Symfony 3.4 and will be moved at the 4th position in 4.0.', __METHOD__), E_USER_DEPRECATED); |
37 $message = $filter; | 37 $message = $filter; |
38 $filter = 0; | 38 $filter = 0; |
39 } | 39 } |
40 | 40 |
41 $this->assertStringMatchesFormat(rtrim($dump), $this->getDump($data, null, $filter), $message); | 41 $this->assertStringMatchesFormat(rtrim($dump), $this->getDump($data, null, $filter), $message); |