| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class FeatureTest extends TestCase |
||
| 14 | { |
||
| 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 | } |
||
| 27 | |||
| 28 | public function test_multiple_binding_class(): void |
||
| 39 | } |
||
| 40 | } |
||
| 41 |