| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function testInvoke(): void |
||
| 16 | { |
||
| 17 | $filePath = __FILE__; |
||
| 18 | $imageOptimizer = $this->createMock(ImageOptimizer::class); |
||
| 19 | $imageOptimizer |
||
|
|
|||
| 20 | ->method('createPreviewIfNotExists') |
||
| 21 | ->willReturn($filePath) |
||
| 22 | ; |
||
| 23 | $imageOptimizationController = $this->createImageOptimizationController($imageOptimizer); |
||
| 24 | |||
| 25 | $response = $imageOptimizationController('image_name'); |
||
| 26 | $this->assertInstanceOf(BinaryFileResponse::class, $response); |
||
| 27 | $this->assertSame($filePath, $response->getFile()->getPathname()); |
||
| 28 | } |
||
| 29 | |||
| 44 |
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.