From: Art4 Date: Thu, 19 Dec 2024 20:37:56 +0000 (+0000) Subject: Create tests for App X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=23e3af4a096a4a9062364224a11f1aee56bd98f4;p=friendica.git Create tests for App --- diff --git a/tests/Unit/AppTest.php b/tests/Unit/AppTest.php new file mode 100644 index 0000000000..c7b9599627 --- /dev/null +++ b/tests/Unit/AppTest.php @@ -0,0 +1,29 @@ +createMock(Dice::class); + $dice->expects($this->exactly(13))->method('create')->willReturnCallback(function($classname) { + return $this->createMock($classname); + }); + + $app = App::fromDice($dice); + + $this->assertInstanceOf(App::class, $app); + } +}