Commit 86e77eb
committed
feature #15175 [VarDumper] Ingore PHPUnit and Prophecy object when they are nested (lyrixx)
This PR was merged into the 2.8 branch.
Discussion
----------
[VarDumper] Ingore PHPUnit and Prophecy object when they are nested
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
The purpose of this PR is to ignore nested PHPUnit/Prophecy object when `dump`ing.
Reproducer:
```php
$a = $this->getMock('Datetime');
$b = $this->prophesize('Datetime')->reveal();
$std = new \stdClass;
$std->my = 'property';
$std->a = $a;
$std->b = $b;
die(dump($a, $b, $std));
```
=>
```
{#86
+"my": "property"
+"a": Mock_Datetime_8ba7f351 {#22 …5}
+"b": Double\DateTime\P1 {#90 …1}
}
```
Commits
-------
2bea373 [VarDumper] Ingore PHPUnit and Prophecy object when they are nested1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments