~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-11-01 23:20:06 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20141101232006-mvlnp0cil67tsboe
Tags: upstream-0~git20141101/arcanist
Import upstream version 0~git20141101, component arcanist

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
final class ArcanistPhutilXHPASTLinterTestCase
 
4
  extends ArcanistArcanistLinterTestCase {
 
5
 
 
6
  public function testPhutilXHPASTLint() {
 
7
    $linter = new ArcanistPhutilXHPASTLinter();
 
8
    $linter->setDeprecatedFunctions(array(
 
9
      'deprecated_function' => 'This function is most likely deprecated.',
 
10
    ));
 
11
 
 
12
    $this->executeTestsInDirectory(
 
13
      dirname(__FILE__).'/phlxhp/',
 
14
      $linter);
 
15
  }
 
16
 
 
17
}