diff --git a/tests/HtmlElementTest.php b/tests/HtmlElementTest.php index 5b9524a..be7abc0 100644 --- a/tests/HtmlElementTest.php +++ b/tests/HtmlElementTest.php @@ -85,4 +85,35 @@ function it_generates_elements_with_boolean_attributes() $this->assertSame('', $element->render()); } + + /** @test */ + function it_generates_a_void_element_with_mixed_attributes() + { + $element = new HtmlElement( + 'input', + ['id' => 'my_paragraph', 'class' => 'paragraph', 'required'], + '' + ); + + $this->assertSame( + '', + $element->render() + ); + } + + /** @test */ + function it_generates_an_element_with_mixed_attributes() + { + $element = new HtmlElement( + 'textarea', + ['id' => 'disabled_paragraph', 'class' => 'paragraph', 'disabled'], + 'Contenido' + ); + + $this->assertSame( + '', + $element->render() + ); + } + } \ No newline at end of file