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)) {