diff --git a/src/lint/linter/__tests__/ArcanistLinterTestCase.php b/src/lint/linter/__tests__/ArcanistLinterTestCase.php --- a/src/lint/linter/__tests__/ArcanistLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistLinterTestCase.php @@ -26,8 +26,8 @@ * Executes all tests from the specified subdirectory. If a linter is not * explicitly specified, it will be inferred from the name of the test class. */ - protected function executeTestsInDirectory($root) { - $linter = $this->getLinter(); + protected function executeTestsInDirectory($root, ArcanistLinter $linter = null) { + $linter = coalesce($linter, $this->getLinter()); $files = id(new FileFinder($root)) ->withType('f')