Example #1
0
 public function testDraw()
 {
     /** @var Tournament $tournament */
     $tournament = $this->getTournament("Round robin test 2 laps");
     for ($round = 1; $round <= 6; $round++) {
         $this->service->makeDraw($tournament, $round);
         $this->assertGames($tournament, $round);
     }
 }
 public function testDraw()
 {
     /** @var Tournament $tournament */
     $tournament = $this->getTournament("Round robin test");
     $countPlayers = count($this->getTournamentHandler()->getPlayers($tournament));
     for ($round = 1; $round <= $countPlayers; $round++) {
         $this->service->makeDraw($tournament, $round);
         $this->assertGames($tournament, $round);
     }
 }