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 testCallReturnsElement() { $h = new HTML(); $p = $h->p(); $this->assertInstanceOf('RocketPHP\\HTML\\Element', $p); }