| Total Complexity | 7 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class KernelBrowser extends BrowserKitBrowser implements ProfileAware |
||
| 15 | { |
||
| 16 | final public function __construct(SymfonyKernelBrowser $inner) |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * By default, exceptions made during a request are caught and converted |
||
| 23 | * to responses by Symfony. This disables this behaviour and actually |
||
| 24 | * throws the exception. |
||
| 25 | * |
||
| 26 | * @return static |
||
| 27 | */ |
||
| 28 | final public function throwExceptions(): self |
||
| 29 | { |
||
| 30 | $this->inner()->catchExceptions(false); |
||
| 31 | |||
| 32 | return $this; |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Re-enables catching exceptions. |
||
| 37 | * |
||
| 38 | * @return static |
||
| 39 | */ |
||
| 40 | final public function catchExceptions(): self |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Enable profiling for the next request. Not required if profiling is |
||
| 49 | * globally enabled. |
||
| 50 | * |
||
| 51 | * @return static |
||
| 52 | */ |
||
| 53 | final public function withProfiling(): self |
||
| 54 | { |
||
| 55 | $this->inner()->enableProfiler(); |
||
| 56 | |||
| 57 | return $this; |
||
| 58 | } |
||
| 59 | |||
| 60 | final public function actingAs(UserInterface $user): self |
||
| 65 | } |
||
| 66 | |||
| 67 | final public function profile(): Profile |
||
| 76 |