public function testContainsAll() { $query = new Query("TestObject"); $query->containsAll("tags", array("foo", "bar")); $out = $query->encode(); $expect = json_encode(array("tags" => array('$all' => array("foo", "bar")))); $this->assertEquals($expect, $out["where"]); }