| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testSetGet() |
||
| 12 | { |
||
| 13 | $container = new Container(['foo' => 1, 'bar' => function(){return 'foobar';}]); |
||
| 14 | $container->set('barfoo', new \stdClass()); |
||
| 15 | |||
| 16 | $this->assertSame(1, $container->get('foo')); |
||
| 17 | $this->assertSame('foobar', $container->get('bar')); |
||
| 18 | $this->assertInstanceOf(\stdClass::class, $container->get('barfoo')); |
||
| 19 | } |
||
| 38 | } |