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