| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | function it_cleans_the_url_query_parameter( |
||
| 28 | ResponseInterface $response, |
||
| 29 | ServerRequestInterface $request |
||
| 30 | ) { |
||
| 31 | $uri = new Uri('/?url=the/test&foo=bar'); |
||
| 32 | $request->getQueryParams() |
||
| 33 | ->shouldBeCalled() |
||
| 34 | ->willReturn(['url' => 'the/test', 'foo' => 'bar']); |
||
| 35 | $request->getUri() |
||
| 36 | ->shouldBeCalled() |
||
| 37 | ->willReturn($uri); |
||
| 38 | $request->withUri(Argument::that(function(UriInterface $uri) { |
||
|
|
|||
| 39 | return $uri->getPath() === '/the/test'; |
||
| 40 | })) |
||
| 41 | ->shouldBeCalled() |
||
| 42 | ->willReturn($request); |
||
| 43 | $this->handle($request, $response)->shouldBe($response); |
||
| 44 | |||
| 45 | } |
||
| 46 | } |
||
| 47 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.