33namespace Micro \Framework \Kernel \Plugin \Boot \Test ;
44
55use Micro \Component \DependencyInjection \Container ;
6- use Micro \Framework \Kernel \Configuration \PluginConfigurationInterface ;
7- use Micro \Framework \Kernel \Plugin \ApplicationPluginInterface ;
8- use Micro \Framework \Kernel \Plugin \Boot \DependencyProviderBootLoader ;
6+ use Micro \Framework \Kernel \Boot \DependencyProviderBootLoader ;
7+ use Micro \Framework \Kernel \Plugin \DependencyProviderInterface ;
98use PHPUnit \Framework \TestCase ;
10- use Plugin \DependencyProviderInterface ;
119
1210class DependencyProviderBootLoaderTest extends TestCase
1311{
@@ -33,30 +31,7 @@ public function testBoot()
3331 ->method ('name ' )
3432 ->willReturn ('test ' );
3533
36- $ pluginNotDependencyProvider = new class implements ApplicationPluginInterface
37- {
38- private readonly PluginConfigurationInterface $ pluginConfiguration ;
39-
40- public function provideDependencies (Container $ container ): void
41- {
42- throw new \Exception ('Not Allowed here ! ' );
43- }
44-
45- public function name (): string
46- {
47- return 'test-plugin ' ;
48- }
49-
50- public function configuration (): PluginConfigurationInterface
51- {
52- return $ this ->pluginConfiguration ;
53- }
54-
55- public function setConfiguration (PluginConfigurationInterface $ pluginConfiguration ): void
56- {
57- $ this ->pluginConfiguration = $ pluginConfiguration ;
58- }
59- };
34+ $ pluginNotDependencyProvider = new class {};
6035
6136 foreach ([ $ pluginMock , $ pluginNotDependencyProvider ] as $ plugin ) {
6237 $ dataProviderBootLoader ->boot ($ plugin );
0 commit comments