Sokil\Mongo\AggregatePipelinesTest::testDeprecatedExplainAggregate_WrongArgument PHP Method

testDeprecatedExplainAggregate_WrongArgument() public method

    public function testDeprecatedExplainAggregate_WrongArgument()
    {
        // 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.6.0'));
        $clientMock->setMongoClient($this->collection->getDatabase()->getClient()->getMongoClient());
        $this->collection = $clientMock->getDatabase('test')->getCollection('phpmongo_test_collection')->explainAggregate('wrong_argument');
    }