Пример #1
0
 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
 public function testIsCurrent()
 {
     $currentDay = new Day(new \DateTime());
     $otherDay = new Day(new \DateTime('1988-11-12'));
     $this->assertTrue($currentDay->isCurrent());
     $this->assertFalse($otherDay->isCurrent());
 }