From 9c2348f2f4a048f23b05e6f578b485093fe9579e Mon Sep 17 00:00:00 2001 From: Stanislav Vorobyev Date: Mon, 15 Oct 2012 14:47:01 +0400 Subject: [PATCH] Fix parsing of PHPUnit JSON log format for PHPUnit 3.7.7 Summary: See https://github.com/facebook/arcanist/pull/55 Reviewed by: epriestley --- src/unit/engine/PhpunitTestEngine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unit/engine/PhpunitTestEngine.php b/src/unit/engine/PhpunitTestEngine.php index d76423f5..d20e0b41 100644 --- a/src/unit/engine/PhpunitTestEngine.php +++ b/src/unit/engine/PhpunitTestEngine.php @@ -126,7 +126,7 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine { ); } - $json = str_replace('}{"', '},{"', $json); + $json = preg_replace('/}{\s*"/', '},{"', $json); $json = '[' . $json . ']'; $json = json_decode($json); if (!is_array($json)) { -- 2.43.0