/** * Creates an button with class .btn-info and the given contents * * @param string $contents The contents of the button * @return \Bootstrapper\Button * @static */ public static function info($contents = '') { return \Bootstrapper\Button::info($contents); }
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); }