Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class HtmlTest extends CommonTestClass |
||
16 | { |
||
17 | public function testSimple1() |
||
18 | { |
||
19 | $data = HtmlElement::init('<hr align="left">', ['width' => '80',]); |
||
20 | $this->assertNotEmpty($data->getAttributes()); |
||
21 | $this->assertEquals('left', $data->getAttribute('align')); |
||
22 | $this->assertEquals('80', $data->getAttribute('width')); |
||
23 | } |
||
24 | |||
25 | public function testSimple2() |
||
26 | { |
||
27 | $data = HtmlElement::init('span', ['height' => '80',]); |
||
28 | $this->assertNotEmpty($data->getAttributes()); |
||
29 | $this->assertEmpty($data->getAttribute('width')); |
||
30 | $this->assertEquals('80', $data->getAttribute('height')); |
||
31 | } |
||
33 |