lithium\tests\cases\console\command\TestTest::testJsonFormat PHP Method

testJsonFormat() public method

public testJsonFormat ( )
    public function testJsonFormat()
    {
        $command = new Test(array('request' => $this->request, 'classes' => $this->classes));
        $lithium = Libraries::get('lithium', 'path');
        $path = $lithium . '/tests/mocks/test/cases/MockTest.php';
        $command->format = 'json';
        $command->run($path);
        $result = $command->response->output;
        $result = json_decode($result, true);
        $this->assertArrayHasKey('count', $result);
        $this->assertArrayHasKey('stats', $result);
    }