Differential D25030 Diff 82 src/lint/linter/xhpast/rules/__tests__/ArcanistXHPASTLinterRuleTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/xhpast/rules/__tests__/ArcanistXHPASTLinterRuleTestCase.php
Context not available. | |||||
$class = get_class($this); | $class = get_class($this); | ||||
$matches = null; | $matches = null; | ||||
if (!preg_match('/^(\w+XHPASTLinterRule)TestCase$/', $class, $matches) || | if (!@preg_match('/^(\w+XHPASTLinterRule)TestCase$/', $class, $matches) || | ||||
!is_subclass_of($matches[1], 'ArcanistXHPASTLinterRule')) { | !is_subclass_of($matches[1], 'ArcanistXHPASTLinterRule')) { | ||||
throw new Exception(pht('Unable to infer linter rule class name.')); | throw new Exception(pht('Unable to infer linter rule class name.')); | ||||
} | } | ||||
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