public function testStatsOutputConstruct() { $age = 48; $testCopyTalleyAge = new TalleyAge(); $testCopyTalleyAge->countAndCategorize($age); $this->assertEquals(1, $testCopyTalleyAge->getDriverCounts("ageData")); }
public function testTalleyAgeGetDriverCounts25to34() { $ageTalley = new TalleyAge(); $age = 30; $ageTalley->countAndCategorize($age); $age = 33; $ageTalley->countAndCategorize($age); $age = 32; $ageTalley->countAndCategorize($age); $this->assertEquals(3, $ageTalley->getDriverCounts("age25to34")); }