Example #1
0
 public function testSortByScorePointsMinor()
 {
     $rank[1] = array('matchsWon' => 2, 'setsWon' => 5, 'setsLost' => 3, 'gamesWon' => 35, 'gamesLost' => 38, 'points' => 3);
     $rank[2] = array('matchsWon' => 1, 'setsWon' => 3, 'setsLost' => 5, 'gamesWon' => 38, 'gamesLost' => 35, 'points' => 4);
     $groupService = new GroupService();
     $groupService->setManager($this->em);
     $rankResult = $groupService->sortByScorePoints($rank[1], $rank[2]);
     $this->assertEquals($rankResult, 1);
 }