Пример #1
0
 /**
  * Test Create
  *
  * Create a table without setting headings first
  *
  * @return void
  *
  */
 public function testCreate_withoutHeadings()
 {
     $tbl = new CHTMLTable();
     // Test without column definitions
     $res = $tbl->create($this->objects);
     $this->assertEquals($this->expNoHeadings, $res, "Mismatch for table without column definitions");
     // Test with column definitions
     $tbl->setColumns($this->colDefs);
     $res = $tbl->create($this->objects);
     $this->assertEquals($this->expWithHeadings, $res, "Mismatch for table with column definitions");
 }