Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | { |
||
17 | public function test_singleton_altered_via_plugin_with_constructor(): void |
||
18 | { |
||
19 | Gacela::bootstrap(__DIR__, static function (GacelaConfig $config): void { |
||
20 | $config->addPlugin(ExamplePluginWithConstructor::class); |
||
21 | }); |
||
22 | |||
23 | $singleton = Gacela::get(StringValue::class); |
||
24 | |||
25 | self::assertSame('Set from plugin ExamplePluginWithConstructor', $singleton->value()); |
||
26 | } |
||
27 | |||
39 |