Example #1
0
 public function testWithoutUnit()
 {
     $Distance = new Distance();
     $this->assertEquals('100', $Distance->set(0.1)->stringMeter(false));
     $this->assertEquals('0,10', $Distance->set(0.1)->stringKilometer(false, 2));
     $this->assertEquals('1.0', $Distance->set(1.609)->stringMiles(false, 1));
 }