/** * test json that cannot be decoded */ public function testAppendJsonWithError() { $object = new Object(['type' => 'json', 'data' => 'json']); $this->assertEquals(true, $object->checkErrors()); }