File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
tests/PhpSpreadsheetTests/Reader/Xlsx Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -30,16 +30,6 @@ public function testURLImageSource(): void
3030 // Check if the source is a URL or a file path
3131 self ::assertTrue ($ drawing ->getIsURL ());
3232 self ::assertSame ('https://phpspreadsheet.readthedocs.io/en/latest/topics/images/01-03-filter-icon-1.png ' , $ drawing ->getPath ());
33- $ imageContents = file_get_contents ($ drawing ->getPath ());
34- self ::assertNotFalse ($ imageContents );
35- $ filePath = tempnam (sys_get_temp_dir (), 'Drawing ' );
36- self ::assertNotFalse ($ filePath );
37- self ::assertNotFalse (file_put_contents ($ filePath , $ imageContents ));
38- $ mimeType = mime_content_type ($ filePath );
39- unlink ($ filePath );
40- self ::assertNotFalse ($ mimeType );
41- $ extension = File::mime2ext ($ mimeType );
42- self ::assertSame ('png ' , $ extension );
4333 self ::assertSame (IMAGETYPE_PNG , $ drawing ->getType ());
4434 self ::assertSame (84 , $ drawing ->getWidth ());
4535 self ::assertSame (44 , $ drawing ->getHeight ());
You can’t perform that action at this time.
0 commit comments