/** * @test * @depends documentFragment */ public function autoTableWithCellAttributes() { $qt = Silkworm::DOUBLE_QUOTE; $table = array(array("class=>left" => "a", "class=middle" => "b", "class, right" => "c")); $html = new Silkworm(); $html->setBooleanDisplayStyle(); //no string defaults to minimized $this->assertSame("<table>\n" . "\t<tr>\n" . "\t\t<td class={$qt}left{$qt}>a</td>\n" . "\t\t<td class={$qt}middle{$qt}>b</td>\n" . "\t\t<td class={$qt}right{$qt}>c</td>\n" . "\t</tr>\n" . "</table>\n", $html->autoTable($table), "failed to create 3 by 3 table."); }