Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/__tests__/PhutilUnitTestEngineTestCase.php
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | $tests = array( | ||||
'test file' => array( | 'test file' => array( | ||||
array(__FILE__), | array(__FILE__), | ||||
array(__FILE__), | array(__FILE__), | ||||
), | ), | ||||
'test directory' => array( | 'test directory' => array( | ||||
array( | array( | ||||
dirname(__FILE__), | __DIR__, | ||||
), | ), | ||||
array( | array( | ||||
// This is odd, but harmless. | // This is odd, but harmless. | ||||
dirname(dirname(__FILE__)).'/__tests__/__tests__/', | dirname(__DIR__).'/__tests__/__tests__/', | ||||
dirname(dirname(__FILE__)).'/__tests__/', | dirname(__DIR__).'/__tests__/', | ||||
dirname(dirname(dirname(__FILE__))).'/__tests__/', | dirname(dirname(__DIR__)).'/__tests__/', | ||||
phutil_get_library_root('arcanist').'/__tests__/', | phutil_get_library_root('arcanist').'/__tests__/', | ||||
), | ), | ||||
), | ), | ||||
'normal directory' => array( | 'normal directory' => array( | ||||
array( | array( | ||||
dirname(dirname(__FILE__)), | dirname(__DIR__), | ||||
), | ), | ||||
array( | array( | ||||
dirname(dirname(__FILE__)).'/__tests__/', | dirname(__DIR__).'/__tests__/', | ||||
dirname(dirname(dirname(__FILE__))).'/__tests__/', | dirname(dirname(__DIR__)).'/__tests__/', | ||||
phutil_get_library_root('arcanist').'/__tests__/', | phutil_get_library_root('arcanist').'/__tests__/', | ||||
), | ), | ||||
), | ), | ||||
'library root' => array( | 'library root' => array( | ||||
array(phutil_get_library_root('arcanist')), | array(phutil_get_library_root('arcanist')), | ||||
array(phutil_get_library_root('arcanist').'/__tests__/'), | array(phutil_get_library_root('arcanist').'/__tests__/'), | ||||
), | ), | ||||
); | ); | ||||
Show All 27 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0