Doctrine\MongoDB\Tests\Query\BuilderTest::testMinDistanceWithGeoNearCommand PHP Method

testMinDistanceWithGeoNearCommand() public method

    public function testMinDistanceWithGeoNearCommand()
    {
        $expected = ['near' => [0, 0], 'options' => ['spherical' => false, 'minDistance' => 5]];
        $qb = $this->getTestQueryBuilder();
        $this->assertSame($qb, $qb->geoNear(0, 0)->minDistance(5));
        $this->assertEquals($expected, $qb->debug('geoNear'));
    }
BuilderTest