Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function test_multiple_binding_class(): void |
||
29 | { |
||
30 | Gacela::bootstrap(__DIR__, static function (GacelaConfig $config): void { |
||
31 | $config->resetInMemoryCache(); |
||
32 | $config->extendGacelaConfigs([BindingStringValue::class]); |
||
33 | }); |
||
34 | |||
35 | /** @var StringValue $singleton */ |
||
36 | $singleton = Gacela::get(StringValue::class); |
||
37 | |||
38 | self::assertSame('Set from BindingStringValue', $singleton->value()); |
||
39 | } |
||
41 |