示例#1
0
 public function testSetter()
 {
     $Split = new Split();
     $this->assertTrue($Split->isEmpty());
     $this->assertTrue($Split->isActive());
     $Split->setDistance(1.0);
     $Split->setTime(300);
     $Split->setResting();
     $this->assertFalse($Split->isEmpty());
     $this->assertEquals(1.0, $Split->distance());
     $this->assertEquals(300, $Split->time());
     $this->assertFalse($Split->isActive());
 }