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