public function testAggregateEventArgs()
 {
     $invoker = new \stdClass();
     $pipeline = array(array('$match' => array('_id' => 1)));
     $aggregateEventArgs = new AggregateEventArgs($invoker, $pipeline);
     $this->assertSame($invoker, $aggregateEventArgs->getInvoker());
     $this->assertSame($pipeline, $aggregateEventArgs->getPipeline());
 }
 public function collectionPreAggregate(AggregateEventArgs $args)
 {
     $args->setOptions($this->options);
     $args->setPipeline($this->pipeline);
 }