public function testGetIndexInfo()
{
$collection = $this->getCollection();
$collection->createIndex(['foo' => 1]);
$collection->createIndex(['bar' => 1], ['unique' => true]);
$expected = [['v' => 1, 'key' => ['_id' => 1], 'name' => '_id_', 'ns' => 'mongo-php-adapter.test'], ['v' => 1, 'key' => ['foo' => 1], 'name' => 'foo_1', 'ns' => 'mongo-php-adapter.test'], ['v' => 1, 'key' => ['bar' => 1], 'name' => 'bar_1', 'ns' => 'mongo-php-adapter.test', 'unique' => true]];
$this->assertEquals($expected, $collection->getIndexInfo());
}