public function testReturnAsArray()
{
$document = $this->collection->createDocument(array('some-field' => 'some-value'));
$document->save();
// find all rows
$document = $this->collection->findAsArray()->where('some-field', 'some-value')->rewind()->current();
$this->assertEquals('array', gettype($document));
// find one row
$document = $this->collection->findAsArray()->where('some-field', 'some-value')->findOne();
$this->assertEquals('array', gettype($document));
}