Skip to content

Commit fb4a583

Browse files
Merge branch '2.7' into 2.8
* 2.7: [VarDumper] fix tests when xdebug is enabled
2 parents 182f906 + e59ae4d commit fb4a583

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ class: "Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest"
145145
*/
146146
public function testGenerator()
147147
{
148+
if (extension_loaded('xdebug')) {
149+
$this->markTestSkipped('xdebug is active');
150+
}
151+
148152
$g = new GeneratorDemo();
149153
$g = $g->baz();
150154
$r = new \ReflectionGenerator($g);

src/Symfony/Component/VarDumper/Tests/VarClonerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ public function testClone()
137137

138138
public function testJsonCast()
139139
{
140+
if (ini_get('xdebug.overload_var_dump') == 2) {
141+
$this->markTestSkipped('xdebug is active');
142+
}
143+
140144
$data = (array) json_decode('{"1":{}}');
141145

142146
$cloner = new VarCloner();

0 commit comments

Comments
 (0)