Пример #1
0
 public function testIsFlags()
 {
     $Time = new Duration();
     $this->assertTrue($Time->isZero());
     $this->assertFalse($Time->isNegative());
     $Time->fromSeconds(-10);
     $this->assertFalse($Time->isZero());
     $this->assertTrue($Time->isNegative());
 }