]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Update callsites of `phutil_json_decode`.
authorJoshua Spence <josh@joshuaspence.com>
Fri, 20 Jun 2014 14:39:20 +0000 (00:39 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Fri, 20 Jun 2014 14:39:20 +0000 (00:39 +1000)
Summary: Depends on D9634. `phutil_json_decode` now throws an exception on invalid JSON.

Test Plan: Ran the unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9641

src/lint/linter/__tests__/ArcanistLinterTestCase.php

index 53c65f0f52caba0b2d121e70ea1106f4d3752724..43ff70a9dbdece23567cb1591c424e52b852fdd5 100644 (file)
@@ -39,11 +39,6 @@ abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase {
     $basename = basename($file);
 
     $config = phutil_json_decode($config);
-    if (!is_array($config)) {
-      throw new Exception(
-        "Invalid configuration in test '{$basename}', not valid JSON.");
-    }
-
     PhutilTypeSpec::checkMap(
       $config,
       array(