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

testGeoNearWithSingleArgument() public method

public testGeoNearWithSingleArgument ( $point, array $near, $spherical )
$near array
    public function testGeoNearWithSingleArgument($point, array $near, $spherical)
    {
        $expected = ['near' => $near, 'options' => ['spherical' => $spherical]];
        $qb = $this->getTestQueryBuilder();
        $this->assertSame($qb, $qb->geoNear($point));
        $this->assertEquals(Query::TYPE_GEO_NEAR, $qb->getType());
        $this->assertEquals($expected, $qb->debug('geoNear'));
    }
BuilderTest