Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function testProxied(): void |
||
13 | { |
||
14 | $container = new DummyContainer(); |
||
15 | $proxied = $container->get(Proxied::class); |
||
16 | |||
17 | $handler = new ProxyHandler(); |
||
18 | |||
19 | $proxyContainer = new ProxyContainer($container, $handler); |
||
20 | $proxy = $proxyContainer->get(Proxied::class); |
||
21 | $proxy->setNumber1(1); |
||
|
|||
22 | |||
23 | $this->assertEquals(['call', 'setNumber1', [1], $proxied], end($handler->calls)); |
||
24 | } |
||
26 |