예제 #1
0
 public function testBuildSection()
 {
     $table = new \ResultSetTable\Table($this->dataSource);
     $column = new \ResultSetTable\Columns\DefaultColumn(['name' => 'foo']);
     $column->setDataSource($this->dataSource[0]);
     $columns = [$column];
     $section = $table->buildSection($this->dataSource[0], 'td', $columns);
     $expected = '<tr class=""><td class="rst-column">bar</td></tr>';
     $this->assertEquals($expected, $section);
 }