public function testRenderWithPlaceholder() { $textarea = new TextArea('bio'); $expected = '<textarea name="bio" rows="10" cols="50" placeholder="Your bio"></textarea>'; $result = $textarea->placeholder('Your bio')->render(); $this->assertEquals($expected, $result); $textarea = new TextArea('description'); $expected = '<textarea name="description" rows="10" cols="50" placeholder="Product description"></textarea>'; $result = $textarea->placeholder('Product description')->render(); $this->assertEquals($expected, $result); }