Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
20 | public function it_removes_malicious_code() |
||
21 | { |
||
22 | $content = file_get_contents(__DIR__.'/stubs/exploit.jpeg'); |
||
23 | |||
24 | $secureImage = $this->app->make(ImageSanitize::class)->sanitize($content); |
||
25 | |||
26 | $this->assertFalse($this->app->make(ImageSanitize::class)->detect($secureImage)); |
||
27 | } |
||
29 |