public function testRenderUsesElementIdIfSet() { $element = new Element('foo'); $element->setAttrib('id', 'foobar')->setView($this->getView())->setLabel('My Label'); $this->decorator->setElement($element); $content = 'test content'; $test = $this->decorator->render($content); $this->assertContains('for="foobar"', $test); }