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