Code Coverage for CoveredClassWithAnonymousFunctionInStaticMethod

Lines 100.00% 8 / 8
Methods 100.00% 1 / 1
Classes 100.00% 1 / 1

Name | Lines | Methods | CRAP
--- | --- | --- | ---
runAnonymous |  | 100.00% | 8 / 8 |  | 100.00% | 1 / 1 | 1

3 |  | class CoveredClassWithAnonymousFunctionInStaticMethod
4 |  | {
5 |  | public static function runAnonymous()
6 |  | {
7 |  | $filter = ['abc124', 'abc123', '123'];
8 |  |
9 |  | array_walk(
10 |  | $filter,
11 |  | function (&$val, $key) {
12 |  | $val = preg_replace('|[^0-9]|', '', $val);
13 |  | }
14 |  | );
15 |  |
16 |  | // Should be covered
17 |  | $extravar = true;
18 |  | }
19 |  | }

Back to the top