示例#1
0
 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);
 }
示例#3
0
 public function check(array $paths, array $checkedExtensions, array $excludedPaths)
 {
     $this->pathChecker->check($this->pathTraversableFactory->createTraversable($paths, $checkedExtensions, $excludedPaths));
 }