| Code Coverage
| Lines | Functions and Methods | Classes and Traits
Total | 100.00% covered (success) | 100.00% | 7 / 7 | 100.00% covered (success) | 100.00% | 1 / 1 | CRAP | 100.00% covered (success) | 100.00% | 1 / 1
getPHPInfo | 100.00% covered (success) | 100.00% | 7 / 7 | 100.00% covered (success) | 100.00% | 1 / 1 | 3 | 100.00% covered (success) | 100.00% | 1 / 1
handle | 100.00% covered (success) | 100.00% | 7 / 7 | 100.00% covered (success) | 100.00% | 1 / 1 | 3 |

1 | <?php
2 |
3 | namespace app\actions;
4 |
5 | class getPHPInfo
6 | {
7 | public function handle($param = [])
8 | {
9 | $sel = isset($param['sel']) ? (bool)$param['sel'] : true;
10 |
11 | if ($sel) {
12 | echo "xxxxx\n";
13 | } else {
14 | echo "cccc\n";
15 | }
16 |
17 | return [
18 | 'php_version' => phpversion(),
19 | ];
20 | }
21 | }