PhpSpreadsheet/tests/PhpSpreadsheetTests/Reader/BaseNoLoadTest.php

18 lines
504 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheetTests\Reader;
use PhpOffice\PhpSpreadsheet\Exception as SpreadsheetException;
use PHPUnit\Framework\TestCase;
class BaseNoLoadTest extends TestCase
{
public function testBaseNoLoad(): void
{
$this->expectException(SpreadsheetException::class);
$this->expectExceptionMessage('Reader classes must implement their own loadSpreadsheetFromFile() method');
$reader = new BaseNoLoad();
$reader->loadxxx('unknown.file');
}
}