Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function originalStoreIsWrappedInRetryStore(): void |
||
28 | { |
||
29 | $callback = function () { |
||
30 | return $this->originalStore; |
||
31 | }; |
||
32 | |||
33 | $result = ($this->delegator)(new ServiceManager(), '', $callback); |
||
34 | |||
35 | $ref = new ReflectionObject($result); |
||
36 | $prop = $ref->getProperty('decorated'); |
||
37 | $prop->setAccessible(true); |
||
38 | |||
39 | $this->assertSame($this->originalStore, $prop->getValue($result)); |
||
40 | } |
||
42 |