Sokil\Mongo\BatchTest::testCount PHP Method

testCount() public method

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