/** * Creates content with a tabbed navigation * * @param array $contents The content * @return $this * @see Bootstrapper\Navigation::$contents * @static */ public static function tabs($contents = array()) { return \Bootstrapper\Tabbable::tabs($contents); }
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); }