Code Duplication    Length = 9-9 lines in 2 locations

tests/Unit/Entity/Traits/CompetitionTest.php 1 location

@@ 46-54 (lines=9) @@
43
   * @uses   \Tfboe\FmLib\Entity\Traits\Competition::getPhases
44
   * @uses   \Tfboe\FmLib\Entity\Traits\Competition::getTeams
45
   */
46
  public function testInit()
47
  {
48
    $competition = $this->competition();
49
    self::callProtectedMethod($competition, 'init');
50
    self::assertInstanceOf(Collection::class, $competition->getTeams());
51
    self::assertInstanceOf(Collection::class, $competition->getPhases());
52
    self::assertEquals(0, $competition->getTeams()->count());
53
    self::assertEquals(0, $competition->getPhases()->count());
54
  }
55
56
  /**
57
   * @covers \Tfboe\FmLib\Entity\Traits\Competition::getLevel()

tests/Unit/Entity/Traits/GameTest.php 1 location

@@ 61-69 (lines=9) @@
58
   * @uses   \Tfboe\FmLib\Entity\Traits\Game::getPlayersA
59
   * @uses   \Tfboe\FmLib\Entity\Traits\Game::getPlayersB
60
   */
61
  public function testInit()
62
  {
63
    $game = $this->game();
64
    self::callProtectedMethod($game, 'init');
65
    self::assertInstanceOf(Collection::class, $game->getPlayersA());
66
    self::assertInstanceOf(Collection::class, $game->getPlayersB());
67
    self::assertEquals(0, $game->getPlayersA()->count());
68
    self::assertEquals(0, $game->getPlayersB()->count());
69
  }
70
71
  /**
72
   * @covers \Tfboe\FmLib\Entity\Traits\Game::getLevel