Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function testScope(): void |
||
48 | { |
||
49 | $cf = $this->getFactory(); |
||
50 | $config = $cf->getConfig('scope'); |
||
51 | $this->assertEquals(['value' => 'value!'], $config); |
||
52 | |||
53 | $this->container->bind(Value::class, new Value('other!')); |
||
|
|||
54 | |||
55 | $config = $cf->getConfig('scope2'); |
||
56 | $this->assertEquals(['value' => 'other!'], $config); |
||
57 | |||
58 | $cf = clone $cf; |
||
59 | |||
60 | $config = $cf->getConfig('scope'); |
||
61 | $this->assertEquals(['value' => 'other!'], $config); |
||
62 | } |
||
64 |