Ejemplo n.º 1
0
 public function testAddAndSubtract()
 {
     $Time = new Duration(100);
     $this->assertEquals(200, $Time->add(new Duration(100))->seconds());
     $this->assertEquals(150, $Time->subtract(new Duration(50))->seconds());
 }