mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-10 14:51:05 +01:00
ac92f9bdfc
Summary: Installations extend this. Another solution would be to extend `ArcanistLinterTestCase` from `ArcanistArcanistLinterTestCase` and return null in `getLink()` to avoid code duplication but I prefer clean class hierarchy. Test Plan: $ arc unit Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3878
19 lines
433 B
PHP
19 lines
433 B
PHP
<?php
|
|
|
|
/**
|
|
* Test cases for @{class:ArcanistTextLinter}.
|
|
*
|
|
* @group testcase
|
|
*/
|
|
final class ArcanistTextLinterTestCase extends ArcanistArcanistLinterTestCase {
|
|
|
|
public function testTextLint() {
|
|
$linter = new ArcanistTextLinter();
|
|
$working_copy = ArcanistWorkingCopyIdentity::newFromPath(__FILE__);
|
|
return $this->executeTestsInDirectory(
|
|
dirname(__FILE__).'/text/',
|
|
$linter,
|
|
$working_copy);
|
|
}
|
|
|
|
}
|