/** * @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); }
/** * Sets the button group to be radio * * @param array $contents * @return $this * @static */ public static function radio($contents) { return \Bootstrapper\ButtonGroup::radio($contents); }