Lines
0.00%
0 / 1
Functions and Methods
0.00%
0 / 1
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ExceptionSimulate | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | 0.00% | 0 / 1 | |||
| __invoke | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | namespace BO\Slim\Controller; | |
| 4 | ||
| 5 | use Psr\Http\Message\RequestInterface; | |
| 6 | use Psr\Http\Message\ResponseInterface; | |
| 7 | ||
| 8 | class ExceptionSimulate extends \BO\Slim\Controller | |
| 9 | { | |
| 10 | #[\Override] | |
| 11 | public function __invoke(RequestInterface $request, ResponseInterface $response, array $args) | |
| 12 | { | |
| 13 | throw new \Exception("Unexpected exception simulation"); | |
| 14 | } | |
| 15 | } |