Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
| controller | |
0.00% |
0 / 4 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
| handle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| handle2 | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| handle_fail | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| __invoke | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace foo; |
| 4 | |
| 5 | use Symfony\Component\HttpFoundation\Response; |
| 6 | |
| 7 | class controller |
| 8 | { |
| 9 | /** |
| 10 | * Handle method |
| 11 | * |
| 12 | * @return null |
| 13 | */ |
| 14 | public function handle($optional = 'foo') |
| 15 | { |
| 16 | return new Response('Test', 200); |
| 17 | } |
| 18 | |
| 19 | public function handle2($foo = 'foo', $very_optional = 0) |
| 20 | { |
| 21 | return new Response('Test2', 200); |
| 22 | } |
| 23 | |
| 24 | public function handle_fail($no_default) |
| 25 | { |
| 26 | return new Response('Test_fail', 200); |
| 27 | } |
| 28 | |
| 29 | public function __invoke() |
| 30 | { |
| 31 | $this->handle(); |
| 32 | } |
| 33 | } |