protected function shouldPreprocess($path) { return PathChecker::check($path); }
public function test_check_false() { PathChecker::setExcludePaths([APPPATH . 'controllers/sub/']); $test = PathChecker::check(APPPATH . '/controllers/sub/abc.php'); $this->assertFalse($test); }
public function check(array $paths, array $checkedExtensions, array $excludedPaths) { $this->pathChecker->check($this->pathTraversableFactory->createTraversable($paths, $checkedExtensions, $excludedPaths)); }