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

testGeoNearWithBothArguments() public method

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