public function ensureIndex(array $key, array $options = array()) { return $this->createIndex($key, $options); }
public function testDeleteIndex() { $this->collection->ensureIndex(array('asc' => 1, 'desc' => -1)); $this->collection->deleteIndex(array('asc' => 1, 'desc' => -1)); $indexes = $this->collection->getIndexes(); $this->assertEquals(1, count($indexes)); }