コード例 #1
0
ファイル: ActiveTest.php プロジェクト: hilltool/active
 public function testReturnCorrectValueWhenNotInitiated()
 {
     $active = new Active(null);
     $this->assertFalse($active->checkAction([]));
     $this->assertFalse($active->checkRouteParam('', ''));
     $this->assertFalse($active->checkRoute([]));
     $this->assertFalse($active->checkRoutePattern([]));
     $this->assertFalse($active->checkUriPattern([]));
     $this->assertFalse($active->checkUri([]));
     $this->assertFalse($active->checkQuery('', ''));
     $this->assertFalse($active->checkController([]));
     $this->assertSame('', $active->getAction());
     $this->assertSame('', $active->getController());
     $this->assertSame('', $active->getMethod());
 }
コード例 #2
0
ファイル: _ide_helper.php プロジェクト: becast/GameReviewSite
 /**
  * Get the current action string
  *
  * @return string 
  * @static 
  */
 public static function getAction()
 {
     return \HieuLe\Active\Active::getAction();
 }