/**
  * @covers \PhpUnitsOfMeasure\AbstractPhysicalQuantity::getUnit
  * @expectedException \PhpUnitsOfMeasure\Exception\UnknownUnitOfMeasure
  */
 public function testGetUnitFailsOnUnknownUnit()
 {
     Wonkicity::getUnit('someUnknownUnit');
 }
 /**
  * @covers \PhpUnitsOfMeasure\AbstractPhysicalQuantity::getUnitDefinitions
  */
 public function testGetAllUnits()
 {
     $array = Wonkicity::getUnitDefinitions();
     $this->assertTrue(is_array($array));
     $expected = array(Wonkicity::getUnit('u'), Wonkicity::getUnit('v'));
     $this->assertEquals($array, $expected);
 }
 public function testGetOriginalUnit()
 {
     $value = new Wonkicity(1.234, 'u');
     $this->assertEquals('u', $value->getUnit()->getName());
 }