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:
parent
b8957205e1
commit
9d36e442e9
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in New Issue