Merge pull request #596 from jim-parry/test/format

Additional JSONFormatter test
This commit is contained in:
Lonnie Ezell 2017-07-11 23:41:13 -05:00 committed by GitHub
commit c0a6e27a91

View File

@ -49,4 +49,15 @@ class JSONFormatterTest extends \CIUnitTestCase
$this->assertEquals($expected, $this->jsonFormatter->format($data));
}
/**
* @expectedException RuntimeException
*/
public function testJSONError()
{
$data = ["\xB1\x31"];
$expected = "Boom";
$this->assertEquals($expected, $this->jsonFormatter->format($data));
}
}