From 488ebbfe5d8acfad8baf8710fcdcf390962f5394 Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Tue, 6 Dec 2016 16:01:27 +0100 Subject: [PATCH] [VarDumper] fix tests when xdebug is enabled --- src/Symfony/Component/VarDumper/Tests/VarClonerTest.php | 4 ++++ 1 file changed, 4 insertions(+) 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();