コード例 #1
0
ファイル: DayTest.php プロジェクト: morloderex/CalendR
 public function testIsCurrent()
 {
     $currentDay = new Day(new \DateTime('00:00:00'), $this->prophesize(FactoryInterface::class)->reveal());
     $otherDay = new Day(new \DateTime('1988-11-12'), $this->prophesize(FactoryInterface::class)->reveal());
     $this->assertTrue($currentDay->isCurrent());
     $this->assertFalse($otherDay->isCurrent());
 }
コード例 #2
0
ファイル: DayTest.php プロジェクト: joostvanderborg/CalendR
 public function testIsCurrent()
 {
     $currentDay = new Day(new \DateTime());
     $otherDay = new Day(new \DateTime('1988-11-12'));
     $this->assertTrue($currentDay->isCurrent());
     $this->assertFalse($otherDay->isCurrent());
 }