_conn->getDatabasePlatform()->getName() !== $dbms) { $this->markTestSkipped('The ' . $testClass .' requires the use of ' . $dbms); } $this->_sm = $this->_conn->getSchemaManager(); } protected function createTestTable($name = 'test_table', $data = array()) { if ( ! isset($data['columns'])) { $columns = array( 'id' => array( 'type' => Type::getType('integer'), 'autoincrement' => true, 'primary' => true, 'notnull' => true ), 'test' => array( 'type' => Type::getType('string'), 'length' => 255 ), 'foreign_key_test' => array( 'type' => Type::getType('integer') ) ); } else { $columns = $data['columns']; } $options = array(); if (isset($data['options'])) { $options = $data['options']; } $this->_sm->dropAndCreateTable($name, $columns, $options); } }