public function testTestJsonValid() { $app = $this->getApp(); $handler = new TextHandler($app); $array = ['koala', 'clippy']; $result = $handler->testJson(json_encode($array)); $this->assertTrue($result); }