| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | class ImageSanitizeTest extends TestCase |
||
| 8 | { |
||
| 9 | /** @test */ |
||
| 10 | public function it_detects_embedded_malicious_code() |
||
| 11 | { |
||
| 12 | $content = file_get_contents(__DIR__.'/stubs/exploit.jpeg'); |
||
| 13 | |||
| 14 | $this->assertTrue( |
||
| 15 | $this->app->make(ImageSanitize::class)->detect($content) |
||
|
|
|||
| 16 | ); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** @test */ |
||
| 20 | public function it_removes_malicious_code() |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
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.