/** * Run tests to ensure the output is correct for set/getDay, set/getMon, etc. * * @return void */ public function testDay() { $schedule = new Schedule(); $schedule->setDay(0, "100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); $this->assertEquals("100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getSun()); $schedule->setDay(1, "110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); $this->assertEquals("110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getMon()); $schedule->setDay(2, "111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); $this->assertEquals("111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getTue()); $schedule->setDay(3, "111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); $this->assertEquals("111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getWed()); $schedule->setDay(4, "111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); $this->assertEquals("111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getThu()); $schedule->setDay(5, "111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); $this->assertEquals("111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getFri()); $schedule->setDay(6, "111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); $this->assertEquals("111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getSat()); $this->assertEquals("100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getDay(0)); $this->assertEquals("110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getDay(1)); $this->assertEquals("111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getDay(2)); $this->assertEquals("111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getDay(3)); $this->assertEquals("111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getDay(4)); $this->assertEquals("111111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getDay(5)); $this->assertEquals("111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", $schedule->getDay(6)); }