/** * @todo Gestion exception */ public function testCreateTable() { $tableName = 'users'; $table = $this->object->createTable('users', array('id' => false)); $this->assertInstanceOf('Phigrate_Adapter_Mysql_TableDefinition', $table); $table = $this->object->createTable('users'); $this->assertInstanceOf('Phigrate_Adapter_Mysql_TableDefinition', $table); }
public function createTable($tableName, $options = array()) { $this->datas['createTable'] = array('name' => $tableName, 'options' => $options); return parent::createTable($tableName, $options); }