public function testJsonDecode() { $app = $this->getApp(); $handler = new TextHandler($app); $array = ['koala' => 'gum leaves', 'extension' => 'Clippy']; $result = $handler->jsonDecode(json_encode($array)); $this->assertSame($array, $result); }