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()); }
/** * Constructor */ public function __construct(ExportData $data, $filename = '') { parent::__construct($data, $filename); $this->format->bol = "<tr>"; $this->format->eol = "</tr>" . $this->format->cr; $this->format->html = '<!DOCTYPE html> <html> <head> <title></title> <style type="text/css"></style> </head> <body></body> </html>'; $this->format->css = NULL; }