minor #16126 [VarDumper] Add missing getDump in abstract VarDumperTestCase (nicolas-grekas)

This PR was merged into the 2.8 branch.

Discussion
----------

[VarDumper] Add missing getDump in abstract VarDumperTestCase

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16063
| License       | MIT
| Doc PR        | -

Just a miss in #16063

Commits
-------

06fdf73 [VarDumper] Add missing getDump in abstract VarDumperTestCase
This commit is contained in:
Fabien Potencier 2015-10-05 17:36:38 +02:00
commit 3cd562847a

View File

@ -21,15 +21,15 @@ abstract class VarDumperTestCase extends \PHPUnit_Framework_TestCase
{
public function assertDumpEquals($dump, $data, $message = '')
{
$this->assertSame(rtrim($dump), $this->getVarDumperDump($data), $message);
$this->assertSame(rtrim($dump), $this->getDump($data), $message);
}
public function assertDumpMatchesFormat($dump, $data, $message = '')
{
$this->assertStringMatchesFormat(rtrim($dump), $this->getVarDumperDump($data), $message);
$this->assertStringMatchesFormat(rtrim($dump), $this->getDump($data), $message);
}
private function getVarDumperDump($data)
private function getDump($data)
{
$h = fopen('php://memory', 'r+b');
$cloner = new VarCloner();