예제 #1
0
 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)));
 }
예제 #2
0
 /**
  * @throws \Exception
  */
 public function employees()
 {
     $employees = new Employees();
     $this->outputJSON(json_encode($employees->get()));
 }