mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-25 21:28:22 +00:00
c936f1d9f8
Mostly new tests, some code annotations, some minor code changes: - RichText clone logic is wrong - TextElement doesn't have object properties, doesn't need clone
18 lines
504 B
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');
|
|
}
|
|
}
|