mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-04 06:33:33 +00:00
545fc89d8f
* Resolve Phpstan Messages Reader/Xls Shared/Escher Reduce number of Phpstan messages by addressing their issues. * Scrutinizer Hyperactivity. * More Scrutinizer Getting close. * Even More Scrutinizer Closer and closer.
25 lines
713 B
PHP
25 lines
713 B
PHP
<?php
|
|
|
|
namespace PhpOffice\PhpSpreadsheetTests\Shared;
|
|
|
|
use PhpOffice\PhpSpreadsheet\Exception as SpreadsheetException;
|
|
use PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class DgContainerTest extends TestCase
|
|
{
|
|
public function testNullContainerWithThrow(): void
|
|
{
|
|
$this->expectException(SpreadsheetException::class);
|
|
$this->expectExceptionMessage('spgrContainer is unexpectedly null');
|
|
$container = new DgContainer();
|
|
$container->getSpgrContainerOrThrow();
|
|
}
|
|
|
|
public function testNullContainerWithoutThrow(): void
|
|
{
|
|
$container = new DgContainer();
|
|
self::assertNull($container->getSpgrContainer());
|
|
}
|
|
}
|