Code Coverage for %s%esource_with_class_and_anonymous_function.php

| Code Coverage
| Classes and Traits | Functions and Methods | Lines
Total | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 1 | CRAP | 87.50% covered (warning) | 87.50% | 7 / 8
CoveredClassWithAnonymousFunctionInStaticMethod | 0.00% covered (danger) | 0.00% | 0 / 1 | 0.00% covered (danger) | 0.00% | 0 / 1 | 1.00 | 87.50% covered (warning) | 87.50% | 7 / 8
runAnonymous | 0.00% covered (danger) | 0.00% | 0 / 1 | 1.00 | 87.50% covered (warning) | 87.50% | 7 / 8

1 | <?php
2 |
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 | }