mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-17 21:46:37 +00:00
Additional Test
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheetTests\Reader\Xls;
|
||||
|
||||
use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
|
||||
use PhpOffice\PhpSpreadsheet\Reader\Xls;
|
||||
use PhpOffice\PhpSpreadsheet\Shared\CodePage;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
@@ -128,6 +129,14 @@ class InfoNamesTest extends TestCase
|
||||
self::assertSame($expected, $names);
|
||||
}
|
||||
|
||||
public function testBadCodePage(): void
|
||||
{
|
||||
$this->expectException(PhpSpreadsheetException::class);
|
||||
$this->expectExceptionMessage('Unknown codepage');
|
||||
$reader = new Xls();
|
||||
$reader->setCodePage('XXXCP855');
|
||||
}
|
||||
|
||||
public function testLoadMacCentralEuropeBiff5(): void
|
||||
{
|
||||
$reader = new Xls();
|
||||
|
||||
Reference in New Issue
Block a user