1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-10 00:42:40 +01:00

Fix parsing of PHPUnit JSON log format for PHPUnit 3.7.7

Summary: See https://github.com/facebook/arcanist/pull/55

Reviewed by: epriestley
This commit is contained in:
Stanislav Vorobyev 2012-10-15 14:47:01 +04:00 committed by epriestley
parent eb5bdb03d0
commit 9c2348f2f4

View file

@ -126,7 +126,7 @@ final class PhpunitTestEngine extends ArcanistBaseUnitTestEngine {
); );
} }
$json = str_replace('}{"', '},{"', $json); $json = preg_replace('/}{\s*"/', '},{"', $json);
$json = '[' . $json . ']'; $json = '[' . $json . ']';
$json = json_decode($json); $json = json_decode($json);
if (!is_array($json)) { if (!is_array($json)) {