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