You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
504 B
17 lines
504 B
<?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');
|
|
}
|
|
}
|
|
|