public function testPipeline_MatchArray() { $pipeline = new Pipeline($this->collection); $pipeline->match(array('a' => 1, 'b' => array('$lt' => 12))); $this->assertEquals('[{"$match":{"a":1,"b":{"$lt":12}}}]', (string) $pipeline); }