From 23e3af4a096a4a9062364224a11f1aee56bd98f4 Mon Sep 17 00:00:00 2001 From: Art4 Date: Thu, 19 Dec 2024 20:37:56 +0000 Subject: [PATCH] Create tests for App --- tests/Unit/AppTest.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tests/Unit/AppTest.php 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); + } +}