mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-01 21:19:18 +00:00
Disable URLImageTest (#2843)
This test has always been problematic in that it depends on an external site not under the control of PhpSpreadsheet, and can therefore break at any time. As it has done this morning. Disable it until a better test is available.
This commit is contained in:
@@ -11,9 +11,12 @@ class URLImageTest extends TestCase
|
||||
{
|
||||
public function testURLImageSource(): void
|
||||
{
|
||||
if (getenv('SKIP_URL_IMAGE_TEST') === '1') {
|
||||
self::markTestSkipped('Skipped due to setting of environment variable');
|
||||
if (getenv('RUN_URL_IMAGE_TEST') !== '1') {
|
||||
self::markTestSkipped('Skipped due to no longer bein able to access external URL');
|
||||
}
|
||||
//if (getenv('SKIP_URL_IMAGE_TEST') === '1') {
|
||||
// self::markTestSkipped('Skipped due to setting of environment variable');
|
||||
//}
|
||||
$filename = realpath(__DIR__ . '/../../../data/Reader/XLSX/urlImage.xlsx');
|
||||
self::assertNotFalse($filename);
|
||||
$reader = IOFactory::createReader('Xlsx');
|
||||
|
||||
Reference in New Issue
Block a user