From: Stanislav Vorobyev Date: Mon, 15 Oct 2012 10:47:01 +0000 (+0400) Subject: Fix parsing of PHPUnit JSON log format for PHPUnit 3.7.7 X-Git-Tag: conduit-6~85 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9c2348f2f4a048f23b05e6f578b485093fe9579e;p=arcanist.git Fix parsing of PHPUnit JSON log format for PHPUnit 3.7.7 Summary: See https://github.com/facebook/arcanist/pull/55 Reviewed by: epriestley --- 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)) {