Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | |
60.00% |
6 / 10 |
|
66.67% |
8 / 12 |
|
60.00% |
6 / 10 |
|
55.56% |
5 / 9 |
CRAP | |
0.00% |
0 / 1 |
| SondeOutput | |
60.00% |
6 / 10 |
|
66.67% |
8 / 12 |
|
60.00% |
6 / 10 |
|
66.67% |
6 / 9 |
16.40 | |
0.00% |
0 / 1 |
| top | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| bottom | |
100.00% |
1 / 1 |
|
75.00% |
3 / 4 |
|
50.00% |
1 / 2 |
|
100.00% |
1 / 1 |
2.50 | |||
| erreur | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| ko | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| output | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| title | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| line | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| ok | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| filter | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Service\ApplicationInfo\Output; |
| 4 | |
| 5 | class SondeOutput implements InterfaceOutput |
| 6 | { |
| 7 | protected bool $ok; |
| 8 | |
| 9 | public function top(): void |
| 10 | { |
| 11 | $this->ok = true; |
| 12 | } |
| 13 | |
| 14 | public function bottom(): void |
| 15 | { |
| 16 | printf('%s', $this->ok ? 'OK' : 'KO'); |
| 17 | } |
| 18 | |
| 19 | public function erreur(string $str): void |
| 20 | { |
| 21 | $this->ok = false; |
| 22 | } |
| 23 | |
| 24 | public function ko(string $str): string |
| 25 | { |
| 26 | $this->ok = false; |
| 27 | |
| 28 | return $str; |
| 29 | } |
| 30 | |
| 31 | public function output(string $str): void |
| 32 | { |
| 33 | // on n'affiche pas les infos |
| 34 | } |
| 35 | |
| 36 | public function title(string $str): void |
| 37 | { |
| 38 | // on n'affiche pas les titres |
| 39 | } |
| 40 | |
| 41 | public function line(string $str): void |
| 42 | { |
| 43 | // on n'affiche de ligne |
| 44 | } |
| 45 | |
| 46 | public function ok(string $str): string |
| 47 | { |
| 48 | return $str; |
| 49 | } |
| 50 | |
| 51 | public function filter(string $str): string |
| 52 | { |
| 53 | return $str; |
| 54 | } |
| 55 | } |