| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function test_single_binding_class(): void |
||
| 16 | { |
||
| 17 | Gacela::bootstrap(__DIR__, static function (GacelaConfig $config): void { |
||
| 18 | $config->resetInMemoryCache(); |
||
| 19 | $config->extendGacelaConfig(BindingStringValue::class); |
||
| 20 | }); |
||
| 21 | |||
| 22 | /** @var StringValue $singleton */ |
||
| 23 | $singleton = Gacela::get(StringValue::class); |
||
| 24 | |||
| 25 | self::assertSame('Set from BindingStringValue', $singleton->value()); |
||
| 26 | } |
||
| 41 |