예제 #1
0
 /**
  * @covers Gloubster\Message\Job\AbstractJob::getEnd
  * @covers Gloubster\Message\Job\AbstractJob::setEnd
  */
 public function testGetEnd()
 {
     $this->assertNull($this->object->getEnd());
     $this->object->setEnd(microtime(true));
     $this->assertInternalType('float', $this->object->getEnd());
     $this->assertLessThanOrEqual((double) (string) microtime(true), $this->object->getEnd());
     $this->assertLessthanOrEqual($this->object->getEnd(), $this->object->getBeginning());
 }