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

« back to all changes in this revision

Viewing changes to src/unit/engine/__tests__/PHPUnitTestEngineTestCase.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
/**
 
4
 * Tests for @{class:PHPUnitTestEngine}.
 
5
 */
 
6
final class PHPUnitTestEngineTestCase extends ArcanistTestCase {
 
7
 
 
8
  public function testSearchLocations() {
 
9
    $path = '/path/to/some/file/X.php';
 
10
 
 
11
    $this->assertEqual(
 
12
      array(
 
13
        '/path/to/some/file/',
 
14
        '/path/to/some/file/tests/',
 
15
        '/path/to/some/file/Tests/',
 
16
        '/path/to/some/tests/',
 
17
        '/path/to/some/Tests/',
 
18
        '/path/to/tests/',
 
19
        '/path/to/Tests/',
 
20
        '/path/tests/',
 
21
        '/path/Tests/',
 
22
        '/tests/',
 
23
        '/Tests/',
 
24
        '/path/to/tests/file/',
 
25
        '/path/to/Tests/file/',
 
26
        '/path/tests/some/file/',
 
27
        '/path/Tests/some/file/',
 
28
        '/tests/to/some/file/',
 
29
        '/Tests/to/some/file/',
 
30
        '/path/to/some/tests/file/',
 
31
        '/path/to/some/Tests/file/',
 
32
        '/path/to/tests/some/file/',
 
33
        '/path/to/Tests/some/file/',
 
34
        '/path/tests/to/some/file/',
 
35
        '/path/Tests/to/some/file/',
 
36
        '/tests/path/to/some/file/',
 
37
        '/Tests/path/to/some/file/',
 
38
      ),
 
39
      PhpunitTestEngine::getSearchLocationsForTests($path));
 
40
  }
 
41
 
 
42
}