public function testToDecare()
 {
     $area = new Area(1000, 'm^2');
     $this->assertEquals(1, $area->toUnit('decare'));
 }
Exemplo n.º 2
0
 public function testToHectares()
 {
     $area = new Area(3, 'ha');
     $this->assertEquals(30000, $area->toUnit("m^2"));
 }