Changeset View
Changeset View
Standalone View
Standalone View
src/parser/__tests__/PhutilJSONTestCase.php
Show All 9 Lines | final class PhutilJSONTestCase extends PhutilTestCase { | ||||
"x": [] | "x": [] | ||||
} | } | ||||
EOJSON; | EOJSON; | ||||
$this->assertEqual( | $this->assertEqual( | ||||
$expect, | $expect, | ||||
$serializer->encodeFormatted(array('x' => array())), | $serializer->encodeFormatted(array('x' => array())), | ||||
pht('Empty arrays should serialize as %s, not %s.', '[]', '{}')); | pht('Empty arrays should serialize as `%s`, not `%s`.', '[]', '{}')); | ||||
} | } | ||||
} | } |