Example #1
0
 /**
  * Tests RW_Time::setSeconds()
  */
 public function testSetSeconds()
 {
     $time = new RW_Time(3);
     $this->assertSame('00:00:27', $time->setSeconds(27)->toString());
     $this->assertSame('00:01:13', $time->setSeconds(73)->toString());
     $time = new RW_Time('27:3');
     $this->assertSame('00:27:27', $time->setSeconds(27)->toString());
     $this->assertSame('00:28:13', $time->setSeconds(73)->toString());
     $time = new RW_Time('13:27:3');
     $this->assertSame('13:27:27', $time->setSeconds(27)->toString());
     $this->assertSame('13:28:13', $time->setSeconds(73)->toString());
 }