@@ 205-215 (lines=11) @@ | ||
202 | /** |
|
203 | * @test |
|
204 | */ |
|
205 | public function shouldRejectNonExistingAdditionalDataKey() |
|
206 | { |
|
207 | $this->expectException(InvalidArgumentException::class); |
|
208 | ||
209 | /** @var Request $request */ |
|
210 | $request = $this->createMock(Request::class); |
|
211 | ||
212 | $this->argumentCompiler->buildArguments([ |
|
213 | 'foo' => '%keyFoo', |
|
214 | ], $request); |
|
215 | } |
|
216 | ||
217 | /** |
|
218 | * @test |
|
@@ 238-250 (lines=13) @@ | ||
235 | /** |
|
236 | * @test |
|
237 | */ |
|
238 | public function shouldRejectMissingMethodOnAdditionalDataKey() |
|
239 | { |
|
240 | $this->expectException(InvalidArgumentException::class); |
|
241 | ||
242 | /** @var Request $request */ |
|
243 | $request = $this->createMock(Request::class); |
|
244 | ||
245 | $this->argumentCompiler->buildArguments([ |
|
246 | 'foo' => '%keyFoo.doSomethingImpossible', |
|
247 | ], $request, [ |
|
248 | 'keyFoo' => $this->createMock(stdClass::class) |
|
249 | ]); |
|
250 | } |
|
251 | ||
252 | /** |
|
253 | * @test |
|
@@ 255-266 (lines=12) @@ | ||
252 | /** |
|
253 | * @test |
|
254 | */ |
|
255 | public function shouldRejectMissingUploadedFile() |
|
256 | { |
|
257 | $this->expectException(InvalidArgumentException::class); |
|
258 | ||
259 | /** @var Request $request */ |
|
260 | $request = $this->createMock(Request::class); |
|
261 | $request->files = $this->createMock(FileBag::class); |
|
262 | ||
263 | $this->argumentCompiler->buildArguments([ |
|
264 | 'foo' => '$files.something_missing.content', |
|
265 | ], $request); |
|
266 | } |
|
267 | ||
268 | /** |
|
269 | * @test |