diff --git a/src/System/Integrate/Testing/TestCase.php b/src/System/Integrate/Testing/TestCase.php index adcb8a0c..c8280419 100644 --- a/src/System/Integrate/Testing/TestCase.php +++ b/src/System/Integrate/Testing/TestCase.php @@ -14,8 +14,8 @@ class TestCase extends BaseTestCase { - protected Application $app; - protected Karnel $karnel; + protected ?Application $app = null; + protected ?Karnel $karnel = null; protected string $class; protected function setUp(): void diff --git a/tests/Integrate/Testing/TestCaseTest.php b/tests/Integrate/Testing/TestCaseTest.php new file mode 100644 index 00000000..6fc586f1 --- /dev/null +++ b/tests/Integrate/Testing/TestCaseTest.php @@ -0,0 +1,26 @@ +app = new Application(dirname(__DIR__) . '/assets/app2'); + $this->app->set(Karnel::class, fn () => new Karnel($this->app)); + + parent::setUp(); + } + + public function testTestRunSmoothly(): void + { + $this->assertTrue(true); + } +}