Example #1
0
 /**
  * @coversNothing
  * @todo What does this test exactly?
  */
 public function testCheckColumns()
 {
     /**
      * Column
      */
     $column = new Table\Column(['Field' => 'id', 'Type' => 'int(10) unsigned', 'Collation' => '', 'Null' => 'NO', 'Key' => 'MUL', 'Default' => '', 'Extra' => 'auto_increment']);
     $columnResult = $column->getResult();
     $columns = new Table\ColumnCollection();
     $columns->add($column);
     /**
      * Table
      */
     $table = new Table(null, null, new Table\ColumnCollection(), new Table\IndexCollection());
     $tableResult = $table->checkColumns($columns);
     $this->assertSame($columnResult, $tableResult);
 }