Sokil\Mongo\AggregatePipelinesTest::testDeprecatedExplainAggregate_UnsupportedDbVersion PHP Method

testDeprecatedExplainAggregate_UnsupportedDbVersion() public method

    public function testDeprecatedExplainAggregate_UnsupportedDbVersion()
    {
        // define db version where aggregate explanation supported
        $clientMock = $this->getMock('\\Sokil\\Mongo\\Client', array('getDbVersion'));
        $clientMock->expects($this->once())->method('getDbVersion')->will($this->returnValue('2.4.0'));
        $clientMock->setMongoClient($this->collection->getDatabase()->getClient()->getMongoClient());
        $clientMock->getDatabase('test')->getCollection('phpmongo_test_collection')->explainAggregate(array());
    }