/** * @covers ::__construct * @group Fieldset */ public function testConstruct() { $attributes = ['type' => 'button', 'name' => '', 'value' => null]; $instance = new Button(); $this->assertEquals($attributes, $instance->getAttributes()); }
/** * Renders a button * * @param Button $button * * @return string * * @since 2.0 */ public function renderButton(Button $button) { $button->setAttribute('class', trim($button->getAttribute('class') . ' btn btn-default')); return $button->render($this); }