]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix parsing of PHPUnit JSON log format for PHPUnit 3.7.7
authorStanislav Vorobyev <vissi@vissi.su>
Mon, 15 Oct 2012 10:47:01 +0000 (14:47 +0400)
committerepriestley <git@epriestley.com>
Mon, 15 Oct 2012 18:07:50 +0000 (11:07 -0700)
Summary: See https://github.com/facebook/arcanist/pull/55

Reviewed by: epriestley

src/unit/engine/PhpunitTestEngine.php

index d76423f514395dd97a0b733a4fb44860d62ac7c0..d20e0b41c0b83582944198d6ae1d05c0ba10f270 100644 (file)
@@ -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)) {