More Tests

This commit is contained in:
oleibman
2025-12-11 23:05:24 -08:00
parent 02d507984b
commit 32161a7699
2 changed files with 27 additions and 0 deletions
@@ -16,4 +16,12 @@ class DggContainerTest extends TestCase
$bse->setParent($container);
self::assertSame($container, $bse->getParent());
}
public function testGetOpt(): void
{
$dgg = new DggContainer();
self::assertNull($dgg->getOPT(99));
$dgg->setOPT(98, 'whatever');
self::assertSame('whatever', $dgg->getOPT(98));
}
}
@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace PhpOffice\PhpSpreadsheetTests\Shared;
use PhpOffice\PhpSpreadsheet\Shared\Escher\DgContainer\SpgrContainer;
use PHPUnit\Framework\TestCase;
class SpgrContainerTest extends TestCase
{
public function testParent(): void
{
$container = new SpgrContainer();
$contained = new SpgrContainer();
$contained->setParent($container);
self::assertSame($container, $contained->getParent());
}
}