public function testMatchStage() { $matchStage = new Match($this->getTestAggregationBuilder()); $matchStage->field('someField')->equals('someValue'); $this->assertSame(array('$match' => array('someField' => 'someValue')), $matchStage->getExpression()); }