Esempio n. 1
0
 /**
  * Creates an button with class .btn-success and the given contents
  *
  * @param string $contents The contents of the button The contents of the
  *                         button
  * @return \Bootstrapper\Button 
  * @static 
  */
 public static function success($contents = '')
 {
     return \Bootstrapper\Button::success($contents);
 }
Esempio n. 2
0
    public function testMultipleButtons()
    {
        $buttons = Button::info('foo') . Button::success('foo');
        $matcher = '<button class="btn-info btn" type="button">foo</button><button class="btn-success btn" type="button">foo</button>';

        $this->assertEquals($matcher, $buttons);
    }