예제 #1
0
 /**
  * @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);
 }
예제 #2
0
 public function createTable($tableName, $options = array())
 {
     $this->datas['createTable'] = array('name' => $tableName, 'options' => $options);
     return parent::createTable($tableName, $options);
 }