/** * @covers Location\Formatter\Coordinate\DMS::setUnits * @expectedException \InvalidArgumentException * @expectedExceptionMessage Invalid unit type */ public function testSetUnitsInvalidType() { $this->formatter->setUnits('invalid'); }