Пример #1
0
 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());
 }
Пример #2
0
 public function testCallReturnsElement()
 {
     $h = new HTML();
     $p = $h->p();
     $this->assertInstanceOf('RocketPHP\\HTML\\Element', $p);
 }