| @@ 294-307 (lines=14) @@ | ||
| 291 | /** |
|
| 292 | * @test |
|
| 293 | */ |
|
| 294 | public function shouldRejectControllerBeingCalledAgain() |
|
| 295 | { |
|
| 296 | $this->expectException(InvalidArgumentException::class); |
|
| 297 | ||
| 298 | $controller = new GenericExceptionResponseController($this->controllerHelper, $this->argumentBuilder, [ |
|
| 299 | 'inner-controller' => $this->innerController, |
|
| 300 | 'inner-controller-method' => "serialize", |
|
| 301 | ]); |
|
| 302 | ||
| 303 | $controller->__construct($this->controllerHelper, $this->argumentBuilder, [ |
|
| 304 | 'inner-controller' => $this->innerController, |
|
| 305 | 'inner-controller-method' => "serialize", |
|
| 306 | ]); |
|
| 307 | } |
|
| 308 | ||
| 309 | /** |
|
| 310 | * @test |
|
| @@ 160-173 (lines=14) @@ | ||
| 157 | /** |
|
| 158 | * @test |
|
| 159 | */ |
|
| 160 | public function shouldRejectConstructorCalledAgain() |
|
| 161 | { |
|
| 162 | $this->expectException(InvalidArgumentException::class); |
|
| 163 | ||
| 164 | $controller = new GenericEntityInvokeController($this->controllerHelper, $this->argumentCompiler, [ |
|
| 165 | 'entity-class' => get_class($this->argumentCompiler), |
|
| 166 | 'method' => 'buildArguments', |
|
| 167 | ]); |
|
| 168 | ||
| 169 | $controller->__construct($this->controllerHelper, $this->argumentCompiler, [ |
|
| 170 | 'entity-class' => get_class($this->argumentCompiler), |
|
| 171 | 'method' => 'buildArguments', |
|
| 172 | ]); |
|
| 173 | } |
|
| 174 | ||
| 175 | /** |
|
| 176 | * @test |
|