Example #1
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\Tabbable::addClass($classes);
 }
Example #2
0
    public function testActiveTab()
    {
        $arr = $this->createLinks();

        //Set second tab as active
        $arr[1][2] = true;

        $tabs = Tabbable::tabs(Navigation::links($arr));

        //Set matcher with
        $matcher = $this->createMatcher('above', 'tabs', 'Section 2', "Howdy, I'm in Section 2.");
        $this->assertHTML($matcher, $tabs);
    }