Example #1
0
 public function testFormat()
 {
     AbstractDecimalUnit::$DecimalSeparator = ',';
     AbstractDecimalUnit::$Decimals = 1;
     $Pace = new MilesPerHour();
     $this->assertEquals('7,5', $Pace->format(300));
     $this->assertEquals('10,0', $Pace->format(224));
 }
Example #2
0
 public function testFormat()
 {
     AbstractDecimalUnit::$DecimalSeparator = ',';
     AbstractDecimalUnit::$Decimals = 1;
     $Pace = new MeterPerSecond();
     $this->assertEquals('3,3', $Pace->format(300));
     $this->assertEquals('4,5', $Pace->format(224));
 }