Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
34 | public function testVoidElementWithAttribute(): void |
||
35 | { |
||
36 | $this->assertEquals( |
||
37 | '<img src="test.jpg"/>', |
||
38 | Element::img(null, ['src' => 'test.jpg'])->__toString() |
||
39 | ); |
||
40 | |||
41 | $this->assertEquals( |
||
42 | '<img src="test.jpg"/>', |
||
43 | (new Element('img', null, ['src' => 'test.jpg']))->__toString() |
||
44 | ); |
||
67 |