2011-01-09 15:22:25 -08:00
|
|
|
<?php
|
|
|
|
|
2012-11-02 18:09:38 -07:00
|
|
|
final class ArcanistXHPASTLinterTestCase
|
|
|
|
extends ArcanistArcanistLinterTestCase {
|
2011-01-09 15:22:25 -08:00
|
|
|
|
|
|
|
public function testXHPASTLint() {
|
2011-02-13 11:57:14 -08:00
|
|
|
$linter = new ArcanistXHPASTLinter();
|
2012-01-28 11:29:30 -08:00
|
|
|
|
|
|
|
$linter->setCustomSeverityMap(
|
|
|
|
array(
|
|
|
|
ArcanistXHPASTLinter::LINT_RAGGED_CLASSTREE_EDGE
|
|
|
|
=> ArcanistLintSeverity::SEVERITY_WARNING,
|
|
|
|
));
|
|
|
|
|
2014-05-13 06:16:02 -07:00
|
|
|
$this->executeTestsInDirectory(
|
2012-06-01 11:41:04 -07:00
|
|
|
dirname(__FILE__).'/xhpast/',
|
2013-08-22 16:02:41 -07:00
|
|
|
$linter);
|
2011-01-09 15:22:25 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|