You are here

class HTMLExporterTest in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/aklump/loft_data_grids/tests/HTMLTableTest.php \AKlump\LoftDataGrids\HTMLExporterTest

Hierarchy

  • class \AKlump\LoftDataGrids\HTMLExporterTest extends \AKlump\LoftDataGrids\PHPUnit_Framework_TestCase

Expanded class hierarchy of HTMLExporterTest

Related topics

File

vendor/aklump/loft_data_grids/tests/phpunit/HTMLTableTest.php, line 13
Tests for the HTMLExporter class

Namespace

AKlump\LoftDataGrids
View source
class HTMLExporterTest extends \PHPUnit_Framework_TestCase {
  public function testCSSColumnClasses() {
    $obj = new ExportData();
    $obj
      ->add('Vivid Color', 'orange')
      ->add('Definitive_SHAPE', 'rectangle');
    $export = new HTMLExporter($obj);
    $control = '<table>
<thead>
<tr><td class="colgroup-vivid-color">Vivid Color</th><td class="colgroup-definitive-shape">Definitive_SHAPE</th></tr>
</thead>
<tbody>
<tr><td class="colgroup-vivid-color">orange</td><td class="colgroup-definitive-shape">rectangle</td></tr>
</tbody>
</table>
';
    $this
      ->assertSame($control, $export
      ->export());
  }

}

Members