Exemplo n.º 1
0
 /**
  * Test: Is Current?
  *
  * @access public
  * @return void
  */
 public function testIsCurrent()
 {
     $currentMinute = new Minute(new \DateTime(date('Y-m-d H:i')));
     $otherMinute = new Minute(new \DateTime('1988-11-12 16:00'));
     $this->assertTrue($currentMinute->isCurrent());
     $this->assertFalse($otherMinute->isCurrent());
 }
Exemplo n.º 2
0
 public function testIsCurrent()
 {
     $currentMinute = new Minute(new \DateTime(date('Y-m-d H:i')), $this->prophesize(FactoryInterface::class)->reveal());
     $otherMinute = new Minute(new \DateTime('1988-11-12 16:00'), $this->prophesize(FactoryInterface::class)->reveal());
     $this->assertTrue($currentMinute->isCurrent());
     $this->assertFalse($otherMinute->isCurrent());
 }