Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testCreateIndexWithSameNameAndDifferentOptions PHP Method

testCreateIndexWithSameNameAndDifferentOptions() public method

    public function testCreateIndexWithSameNameAndDifferentOptions()
    {
        $this->setExpectedException('MongoResultException');
        $this->getCollection()->createIndex(['foo' => 1], ['name' => 'foo']);
        $this->getCollection()->createIndex(['bar' => 1], ['name' => 'foo']);
    }
MongoCollectionTest