Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testCreateIndexInvalid PHP Метод

testCreateIndexInvalid() публичный Метод

    public function testCreateIndexInvalid()
    {
        $this->setExpectedException('MongoException', 'index specification has no elements');
        $this->getCollection()->createIndex([]);
    }
MongoCollectionTest