Example #1
0
    public function testCustom()
    {
        $badge = Badge::custom('success', 'foo', array('class' => 'bar'));
        $match = $this->createMatcher('success');

        $this->assertHTML($match, $badge);
    }
Example #2
0
 /**
  * Adds the given classes to attributes
  *
  * @param array $classes
  * @return $this 
  * @static 
  */
 public static function addClass($classes)
 {
     //Method inherited from \Bootstrapper\RenderedObject
     return \Bootstrapper\Badge::addClass($classes);
 }