Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php
<?php | <?php | ||||
/** | /** | ||||
* @group testcase | * @group testcase | ||||
*/ | */ | ||||
final class ArcanistPhutilXHPASTLinterTestCase | final class ArcanistPhutilXHPASTLinterTestCase | ||||
extends ArcanistArcanistLinterTestCase { | extends ArcanistArcanistLinterTestCase { | ||||
public function testPhutilXHPASTLint() { | public function testPhutilXHPASTLint() { | ||||
$linter = new ArcanistPhutilXHPASTLinter(); | $linter = new ArcanistPhutilXHPASTLinter(); | ||||
$linter->setXHPASTLinter(new ArcanistXHPASTLinter()); | |||||
$linter->setDeprecatedFunctions(array( | $linter->setDeprecatedFunctions(array( | ||||
'deprecated_function' => 'This function is most likely deprecated.', | 'deprecated_function' => 'This function is most likely deprecated.', | ||||
)); | )); | ||||
return $this->executeTestsInDirectory( | return $this->executeTestsInDirectory( | ||||
dirname(__FILE__).'/phlxhp/', | dirname(__FILE__).'/phlxhp/', | ||||
$linter); | $linter); | ||||
} | } | ||||
} | } |