public function testGeneratesTableCreationSql()
 {
     $table = new \Doctrine\DBAL\Schema\Table('test');
     $table->addColumn('id', 'integer', array('notnull' => true));
     $table->addColumn('test', 'string', array('notnull' => false, 'length' => 255));
     $table->setPrimaryKey(array('id'));
     $table->setIdGeneratorType(\Doctrine\DBAL\Schema\Table::ID_IDENTITY);
     $sql = $this->_platform->getCreateTableSQL($table);
     $this->assertEquals($this->getGenerateTableSql(), $sql[0]);
 }
 protected function getTestTable($name, $options = array())
 {
     $table = new \Doctrine\DBAL\Schema\Table($name, array(), array(), array(), \Doctrine\DBAL\Schema\Table::ID_NONE, $options);
     $table->setSchemaConfig($this->_sm->createSchemaConfig());
     $table->setIdGeneratorType(\Doctrine\DBAL\Schema\Table::ID_IDENTITY);
     $table->addColumn('id', 'integer', array('notnull' => true));
     $table->setPrimaryKey(array('id'));
     $table->addColumn('test', 'string', array('length' => 255));
     $table->addColumn('foreign_key_test', 'integer');
     return $table;
 }