| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 16 | public function testFixtureGenerator() | ||
| 17 |     { | ||
| 18 | $teams = \App\Lib\DsManager\Models\Orm\Team::all(); | ||
| 19 | $rounds = \App\Lib\DsManager\Helpers\LeagueFixtureGenerator::generate( | ||
| 20 | $teams->toArray() | ||
| 21 | ); | ||
| 22 | //Number of rounds | ||
| 23 | $this->assertCount($teams->count() - 1, $rounds); | ||
| 24 | //Matches for each round | ||
| 25 |         foreach ($rounds as $round) { | ||
| 26 | $this->assertCount($teams->count() / 2, $round); | ||
| 27 | } | ||
| 28 | } | ||
| 29 | |||
| 82 | 
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.