public function testSchemaCallback()
{
$schema = array('_id' => array('type' => 'id'), 'created' => array('type' => 'date'));
$db = new MongoDb(array('autoConnect' => false, 'schema' => function () use($schema) {
return $schema;
}));
$this->assertEqual($schema, $db->describe(null)->fields());
}