public function testLabel() { $button = new Button(); $button->setLabel('My label'); $this->assertEquals('My label', $button->getLabel()); $html = '<a href="#" class="btn">My label</a>'; $this->assertEquals($html, $button->toHtml(array())); }