/** * Method to test renderLabel(). * * @return void * * @covers Windwalker\Form\Field\AbstractField::renderLabel */ public function testRenderLabel() { $expect = <<<HTML <label id="input-flower-label" for="input-flower">Flower</label> HTML; $this->assertHtmlFormatEquals($expect, $this->instance->renderLabel()); }
/** * Method to test renderLabel(). * * @return void * * @covers Windwalker\Form\Field\AbstractField::renderLabel */ public function testRenderLabel() { $expect = <<<HTML <label id="flower-label" for="flower">Flower</label> HTML; $this->assertDomStringEqualsDomString($expect, $this->instance->renderLabel()); }