コード例 #1
0
 public static function setUpBeforeClass()
 {
     static::$linter = getenv('LINT_TEST_CASES') ? new Linter() : new NullLinter();
     $tmpFile = static::getTempFile();
     if (!is_file($tmpFile)) {
         $dir = dirname($tmpFile);
         if (!is_dir($dir)) {
             $fs = new Filesystem();
             $fs->mkdir($dir, 0766);
         }
     }
 }
コード例 #2
0
 public static function setUpBeforeClass()
 {
     if (getenv('LINT_TEST_CASES')) {
         static::$linter = new Linter();
     }
 }
コード例 #3
0
 public static function setUpBeforeClass()
 {
     static::$linter = getenv('LINT_TEST_CASES') ? new Linter() : new NullLinter();
 }