Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testCreateIndexWithSameNameAndDifferentOptions PHP Méthode

testCreateIndexWithSameNameAndDifferentOptions() public méthode

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