diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php index a716bbabd6..67380dbf6c 100644 --- a/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php @@ -145,6 +145,10 @@ EOTXT */ 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 1184f2c76a..9f60032e0c 100644 --- a/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php +++ b/src/Symfony/Component/VarDumper/Tests/VarClonerTest.php @@ -137,6 +137,10 @@ EOTXT; public function testJsonCast() { + if (ini_get('xdebug.overload_var_dump') == 2) { + $this->markTestSkipped('xdebug is active'); + } + $data = (array) json_decode('{"1":{}}'); $cloner = new VarCloner();