Changeset View
Changeset View
Standalone View
Standalone View
src/unit/engine/PhutilUnitTestEngine.php
Context not available. | |||||
$run_tests = array(); | $run_tests = array(); | ||||
foreach ($symbols as $symbol) { | foreach ($symbols as $symbol) { | ||||
if (!preg_match('@(?:^|/)__tests__/@', $symbol['where'])) { | if (!@preg_match('@(?:^|/)__tests__/@', $symbol['where'])) { | ||||
continue; | continue; | ||||
} | } | ||||
Context not available. | |||||
continue; | continue; | ||||
} | } | ||||
if (is_file($path) && preg_match('@(?:^|/)__tests__/@', $path)) { | if (is_file($path) && @preg_match('@(?:^|/)__tests__/@', $path)) { | ||||
$paths[$library_name.':'.$library_path] = array( | $paths[$library_name.':'.$library_path] = array( | ||||
'library' => $library_name, | 'library' => $library_name, | ||||
'path' => $library_path, | 'path' => $library_path, | ||||
Context not available. |
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