Exemplo n.º 1
0
 public function providerGetEmployeesAvg()
 {
     $employee0 = new Developer();
     $employee0->setId(1);
     $employee0->setName('NAME');
     $employee0->setLastName('LASTNAME');
     $employee0->setAge(33);
     $testCase01 = array('param' => array($employee0), 'expect' => array('avg' => 33));
     $employee2 = new Developer();
     $employee2->setId(1);
     $employee2->setName('NAME');
     $employee2->setLastName('LASTNAME');
     $employee2->setAge(21);
     $employee3 = new Developer();
     $employee3->setId(1);
     $employee3->setName('NAME');
     $employee3->setLastName('LASTNAME');
     $employee3->setAge(33);
     $testCase02 = array('param' => array($employee2, $employee3), 'expect' => array('avg' => 27));
     return array($testCase01, $testCase02);
 }