public function testGenerateBreakdown() { $testGames = unserialize(file_get_contents('./fixtures/games.txt')); $testFranchises = unserialize(file_get_contents('./fixtures/franchises.txt')); $testStandings = new \IBL\Standings($testGames, $testFranchises); $testResults = $testStandings->generateBreakdown(); $this->assertEquals(2, count($testResults), 'Have wins and losses'); $testWins = $testResults['wins']; $testLosses = $testResults['losses']; $this->assertEquals(24, count($testWins), '24 teams worth of wins'); $this->assertEquals(24, count($testLosses), '24 teams of losses'); }