コード例 #1
0
ファイル: _ide_helper.php プロジェクト: qarlson/infr
 /**
  * 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);
 }
コード例 #2
0
ファイル: TabbableTest.php プロジェクト: Vrian7ipx/cascadadev
    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);
    }