Skip to content

Commit 094ed46

Browse files
authored
Update URLImageTest.php
1 parent 4a200cc commit 094ed46

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

tests/PhpSpreadsheetTests/Reader/Xlsx/URLImageTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)