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()); } }