public function testJSendFail() { $response = \Response::jsendFail((object) ['mydata' => 'thedata']); $this->assertEquals('fail', $response->getData()->status); $this->assertEquals('thedata', $response->getData()->data->mydata); }