Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php
| <?php | <?php | ||||
| final class ArcanistPhutilXHPASTLinterTestCase extends ArcanistLinterTestCase { | final class ArcanistPhutilXHPASTLinterTestCase extends ArcanistLinterTestCase { | ||||
| public function testLinter() { | public function testLinter() { | ||||
| $linter = new ArcanistPhutilXHPASTLinter(); | $linter = new ArcanistPhutilXHPASTLinter(); | ||||
| $linter->setDeprecatedFunctions(array( | $linter->setDeprecatedFunctions(array( | ||||
| 'deprecated_function' => 'This function is most likely deprecated.', | 'deprecated_function' => pht('This function is most likely deprecated.'), | ||||
| )); | )); | ||||
| $this->executeTestsInDirectory(dirname(__FILE__).'/phlxhp/', $linter); | $this->executeTestsInDirectory(dirname(__FILE__).'/phlxhp/', $linter); | ||||
| } | } | ||||
| } | } | ||||