/** * getData() should return array if data does exist */ public function test_getData__returnsArray_ifDataDoesExist() { $data = ['foo' => 'bar']; $response = new Json(); $response->setData($data); $this->assertEquals($data, $response->getData()); return; }