Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/__tests__/ArcanistESLintLinterTestCase.php
- This file was added.
<?php | |||||
final class ArcanistESLintLinterTestCase | |||||
extends ArcanistExternalLinterTestCase { | |||||
public function testLinter() { | |||||
$linter = new ArcanistESLintLinter(); | |||||
$linter->setLinterConfigurationValue( | |||||
'eslint.eslintconfig', | |||||
dirname(__FILE__).'/eslint/.eslintrc'); | |||||
$this->executeTestsInDirectory(dirname(__FILE__).'/eslint/', $linter); | |||||
michaeljs1990: I am guessing that you may use something different then dirname(__FILE__) for this as you… | |||||
Done Inline Actionswhat do all other lint test cases do? avivey: what do all other lint test cases do? | |||||
Done Inline ActionsJust checked and every other linter is using this method of getting the directory name so this seems to be the standard. michaeljs1990: Just checked and every other linter is using this method of getting the directory name so this… | |||||
} | |||||
} |
I am guessing that you may use something different then dirname(FILE) for this as you support php 5.2.