isAfterOrEqual() public method

Checks if this time is after or equal to an other time.
public isAfterOrEqual ( Time $other ) : boolean
$other Time
return boolean
Exemplo n.º 1
0
 public function testIsAfterOrEqual()
 {
     $time = new Time('20', '00');
     $this->assertTrue($time->isAfterOrEqual(new Time('18', '00')));
     $this->assertFalse($time->isAfterOrEqual(new Time('22', '15')));
     $this->assertTrue($time->isAfterOrEqual(new Time('20', '00')));
 }