Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testAggregateInvalidPipeline PHP Method

testAggregateInvalidPipeline() public method

    public function testAggregateInvalidPipeline()
    {
        $collection = $this->getCollection();
        $pipeline = [['$invalid' => []]];
        $this->setExpectedException('MongoResultException', 'Unrecognized pipeline stage name');
        $collection->aggregate($pipeline);
    }
MongoCollectionTest