public function testGeneratesConstraintCreationSql()
 {
     $idx = new \Doctrine\DBAL\Schema\Index('constraint_name', array('test'), true, false);
     $sql = $this->_platform->getCreateConstraintSQL($idx, 'test');
     $this->assertEquals($this->getGenerateConstraintUniqueIndexSql(), $sql);
     $pk = new \Doctrine\DBAL\Schema\Index('constraint_name', array('test'), true, true);
     $sql = $this->_platform->getCreateConstraintSQL($pk, 'test');
     $this->assertEquals($this->getGenerateConstraintPrimaryIndexSql(), $sql);
     $fk = new \Doctrine\DBAL\Schema\ForeignKeyConstraint(array('fk_name'), 'foreign', array('id'), 'constraint_fk');
     $sql = $this->_platform->getCreateConstraintSQL($fk, 'test');
     $this->assertEquals($this->getGenerateConstraintForeignKeySql(), $sql);
 }