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()); }
/** * Check if the current URI matches one of specific patterns (using `str_is`) * * @param array $patterns * @return bool * @static */ public static function checkUriPattern($patterns) { return \HieuLe\Active\Active::checkUriPattern($patterns); }