public function testAddColumn() { $cols = $this->getColArray(); $table = $this->getFromArrayDataTable($cols, $this->getRowsArray()); $table->addColumn('id6', 'label added', 'boolean'); $col = new DataColumn('id6', 'label added', 'boolean'); $cols = $table->getColumns(); $this->assertEquals(end($cols)->toArray(), $col->toArray()); $col2 = new DataColumn('id7', 'label added', 'boolean'); $table->addColumnObject($col2); $cols = $table->getColumns(); $this->assertEquals(end($cols)->toArray(), $col2->toArray()); }