/** * @dataProvider coordValidProvider */ public function testConstructorSetParser($coord) { $parser = new C\DecimalParser(); $Coordinate = new N\Coordinate($coord, $parser); $this->assertInstanceOf('Treffynnon\\Navigator\\Coordinate\\DecimalParser', $Coordinate->getParser()); }
/** * Prime the coordinate parser with any additional information * necessary */ protected function primeCoordinateParsers() { $this->latitude->getParser()->setDirection(N::Lat); $this->longitude->getParser()->setDirection(N::Long); }