diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php index f4cc50efc597c..fc5cee379f59f 100644 --- a/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php @@ -147,6 +147,10 @@ class: "Symfony\Component\VarDumper\Tests\Caster\ReflectionCasterTest" */ public function testGenerator() { + if (extension_loaded('xdebug')) { + $this->markTestSkipped('xdebug is active'); + } + $g = new GeneratorDemo(); $g = $g->baz(); $r = new \ReflectionGenerator($g); diff --git a/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php b/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php index eb2d0b0eda65c..89634173670f2 100644 --- a/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php +++ b/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php @@ -157,6 +157,10 @@ public function testClone() public function testJsonCast() { + if (ini_get('xdebug.overload_var_dump') == 2) { + $this->markTestSkipped('xdebug is active'); + } + $data = (array) json_decode('{"1":{}}'); $cloner = new VarCloner();