Cover non-encrypted OLE reader fallback

This commit is contained in:
^^
2026-08-24 18:37:56 +08:00
parent cc2dc83d01
commit 90767fd23e
@@ -31,6 +31,12 @@ class AgileEncryptionTest extends TestCase
self::assertFalse((new Xlsx())->canRead('tests/data/Reader/XLS/sample.xls'));
}
public function testNonEncryptedOleFallsBackToNormalXlsxLoading(): void
{
$this->expectException(Exception::class);
(new Xlsx())->load('tests/data/Reader/XLS/sample.xls');
}
public function testListWorksheetMetadataForEncryptedWorkbook(): void
{
$reader = (new Xlsx())->setEncryptionPassword('open');