/** * @dataProvider driverSet */ public function testSingleIndex(Mongo $mongo) { $collection = 'TestIndexCollection'; $mongo->dropCollection($collection); $index = new SingleIndex('Name', 'name', false, true); $mongo->createIndex($collection, $index); $index = new CompoundIndex('TitleCategory', ['title', 'category']); $mongo->createIndex($collection, $index); $index = new TextIndex('Title', ['title', 'category']); $mongo->createIndex($collection, $index); $indexes = $mongo->getIndexInfo($collection); $this->assertEquals(4, count($indexes)); }