public function testGenerateList() { $h = new HTML(); $ol = $h->ol('id="green"'); $li = $ol->li('Some list text.'); $li = $ol->li('class="card"'); $result = '<ol id="green">'; $result .= '<li>Some list text.</li>'; $result .= '<li class="card"></li>'; $result .= '</ol>'; $this->assertSame($result, $h->__toString()); }
public function testHtmlIsInitiallyEmptyString() { $h = new HTML(); $this->assertSame('', $h->__toString()); }