public function testCount() { $batch = new BatchInsert($this->collection); $batch->insert(array()); $batch->insert(array()); $batch->insert(array()); $this->assertEquals(3, count($batch)); }