/** * @covers ::__construct * @covers ::setTotalDay * @covers ::getTotalForDay * * @dataProvider provideTotals * * @param integer $weekDay (Day::const*) */ public function testTotalForOneDay($weekDay) { $stats = new WeekStats(); $stats->setTotalDay($weekDay, 0); $this->assertEquals(0, $stats->getTotalForDay($weekDay), "Get Total for a day must return zero"); $stats->setTotalDay($weekDay, 10); $this->assertEquals(10, $stats->getTotalForDay($weekDay), "Get Total for a day must return ten"); }