public function testVerticalOpenRadio() { $open = ButtonGroup::vertical_open('radio', $this->testAttributes); $matcher = $this->buttonGroup; $matcher['attributes']['class'] = 'btn-group-vertical ' . $matcher['attributes']['class']; $matcher['attributes']['data-toggle'] = 'buttons-radio'; $this->assertTag($matcher, $open); }
/** * @dataProvider classes */ public function testClasses($class) { $html = ButtonGroup::radio( array( array($class, 'Option 1'), array($class, 'Option 2'), array($class, 'Option 3'), ), $this->testAttributes ); $matcher = $this->getMatcher($class, 'radio'); $this->assertHTML($matcher, $html); }
/** * Adds the given classes to attributes * * @param array $classes * @return $this * @static */ public static function addClass($classes) { //Method inherited from \Bootstrapper\RenderedObject return \Bootstrapper\ButtonGroup::addClass($classes); }