mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-11 18:46:49 +00:00
Cover non-encrypted OLE reader fallback
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user