diff --git a/tests/PluginTest.php b/tests/PluginTest.php new file mode 100644 index 0000000..076472a --- /dev/null +++ b/tests/PluginTest.php @@ -0,0 +1,29 @@ +getMockBuilder( [ ServiceProviderInterface::class, Bootable_Provider_Interface::class ] ) + ->getMock(); + + $service->expects( $this->once() ) + ->method( 'register' ) + ->with( $container ); + + $container->register( $service ); + + $service->expects( $this->once() ) + ->method( 'boot' ) + ->with( $container ); + + $container->run(); + } +}