public function testEmployeesGetShouldReturnDerivedData() { $employees = new Employees($this->repositoryMock); $response = $employees->get(); usort($response, function ($a, $b) { return $a[0] - $b[0]; }); $this->assertCount(20, $response); $this->assertEquals(md5(serialize($this->repositoryData['output'])), md5(serialize($response))); }
/** * @throws \Exception */ public function employees() { $employees = new Employees(); $this->outputJSON(json_encode($employees->get())); }