File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
tests/PhpSpreadsheetTests/Reader/Xlsx Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -61,28 +61,4 @@ public function testURLImageSourceBadProtocol(): void
6161 $ reader = IOFactory::createReader ('Xlsx ' );
6262 $ reader ->load ($ filename );
6363 }
64-
65- public function testURLImageSourceNotFound (): void
66- {
67- if (getenv ('SKIP_URL_IMAGE_TEST ' ) === '1 ' ) {
68- self ::markTestSkipped ('Skipped due to setting of environment variable ' );
69- }
70- $ filename = realpath (__DIR__ . '/../../../data/Reader/XLSX/urlImage.notfound.xlsx ' );
71- self ::assertNotFalse ($ filename );
72- $ reader = IOFactory::createReader ('Xlsx ' );
73- $ spreadsheet = $ reader ->load ($ filename );
74- $ worksheet = $ spreadsheet ->getActiveSheet ();
75- $ collection = $ worksheet ->getDrawingCollection ();
76- self ::assertCount (0 , $ collection );
77- }
78-
79- public function testURLImageSourceBadProtocol (): void
80- {
81- $ filename = realpath (__DIR__ . '/../../../data/Reader/XLSX/urlImage.bad.dontuse ' );
82- self ::assertNotFalse ($ filename );
83- $ this ->expectException (SpreadsheetException::class);
84- $ this ->expectExceptionMessage ('Invalid protocol for linked drawing ' );
85- $ reader = IOFactory::createReader ('Xlsx ' );
86- $ reader ->load ($ filename );
87- }
8864}
You can’t perform that action at this time.
0 commit comments