/** * @covers Paradox\pod\Document::getReferenceCoordinates */ public function testGetReferenceCoordinates() { $document = new Document($this->getClient()->getToolbox(), $this->collectionName, array('_paradox_distance_parameter' => 10000)); $document->setDistanceInfo(48.0, 48.0, 'mycollection/123456'); $coordinates = $document->getReferenceCoordinates(); $this->assertInternalType('array', $coordinates, "The reference coordinates should be an array"); $this->assertEquals(48.0, $coordinates['latitude'], "The latitude does not match the setted value"); $this->assertEquals(48.0, $coordinates['longitude'], "The longitude does not match the setted value"); }