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); } } }
public static function setUpBeforeClass() { if (getenv('LINT_TEST_CASES')) { static::$linter = new Linter(); } }
public static function setUpBeforeClass() { static::$linter = getenv('LINT_TEST_CASES') ? new Linter() : new NullLinter(); }