Esempio n. 1
0
    public function testDeemphasizeLink()
    {
        $button = Button::link('#', 'foo', $this->testAttributes)->deemphasize();
        $matcher = $this->createMatcher('link');
        $matcher['tag'] = 'a';
        $matcher['attributes']['class'] .= ' btn-link';
        $matcher['attributes']['href'] = '#';
        unset($matcher['attributes']['type']);
        $exact = '<a class="foo btn-link btn" data-foo="bar" href="#">foo</a>';

        $this->assertHTML($matcher, $button);
        $this->assertEquals($exact, $button);
    }
Esempio n. 2
0
 /**
  * Creates an button with class .btn-link and the given contents
  *
  * @param string $contents The contents of the button
  * @return \Bootstrapper\Button 
  * @static 
  */
 public static function link($contents = '')
 {
     return \Bootstrapper\Button::link($contents);
 }