@@ 282-290 (lines=9) @@ | ||
279 | /** |
|
280 | * @test |
|
281 | */ |
|
282 | public function shouldRejectNonObjectInnerController() |
|
283 | { |
|
284 | $this->expectException(InvalidArgumentException::class); |
|
285 | ||
286 | $controller = new GenericExceptionResponseController($this->controllerHelper, $this->argumentBuilder, [ |
|
287 | 'inner-controller' => false, |
|
288 | 'inner-controller-method' => "serialize", |
|
289 | ]); |
|
290 | } |
|
291 | ||
292 | /** |
|
293 | * @test |
|
@@ 313-322 (lines=10) @@ | ||
310 | /** |
|
311 | * @test |
|
312 | */ |
|
313 | public function shouldRejectNonArrayGivenAsInnerControllerArguments() |
|
314 | { |
|
315 | $this->expectException(InvalidArgumentException::class); |
|
316 | ||
317 | $controller = new GenericExceptionResponseController($this->controllerHelper, $this->argumentBuilder, [ |
|
318 | 'inner-controller' => $this->innerController, |
|
319 | 'inner-controller-method' => "serialize", |
|
320 | 'arguments' => "Lorem ipsum", |
|
321 | ]); |
|
322 | } |
|
323 | ||
324 | /** |
|
325 | * @test |