public function testStatsOutputConstruct() { $age = 48; $testCopyTalleyAge = new TalleyAge(); $testCopyTalleyAge->countAndCategorize($age); $this->assertEquals(1, $testCopyTalleyAge->getDriverCounts("ageData")); }
public function testTalleyAgeGetPercentOfDriversUnder25() { $ageTalley = new TalleyAge(); $age = 18; $ageTalley->countAndCategorize($age); $age = 32; $ageTalley->countAndCategorize($age); $this->assertEquals(50, $ageTalley->getPercentOfDriverCategory("ageUnder25")); }