class CoveredClassWithAnonymousFunctionInStaticMethod in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/php-code-coverage/tests/_files/source_with_class_and_anonymous_function.php \CoveredClassWithAnonymousFunctionInStaticMethod
Hierarchy
Expanded class hierarchy of CoveredClassWithAnonymousFunctionInStaticMethod
File
- vendor/
phpunit/ php-code-coverage/ tests/ _files/ source_with_class_and_anonymous_function.php, line 3
View source
class CoveredClassWithAnonymousFunctionInStaticMethod {
public static function runAnonymous() {
$filter = array(
'abc124',
'abc123',
'123',
);
array_walk($filter, function (&$val, $key) {
$val = preg_replace('|[^0-9]|', '', $val);
});
// Should be covered
$extravar = true;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CoveredClassWithAnonymousFunctionInStaticMethod:: |
public static | function |