Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
30 | public function test_getProvider_with_object() |
||
31 | { |
||
32 | $repository = new ProviderRepository(); |
||
33 | $repository->setContainer(new Container()); |
||
34 | $provider = new DemoServiceProvider(); |
||
35 | $repository->add($provider); |
||
36 | $providerReturned = $repository->getProvider($provider); |
||
37 | self::assertSame($providerReturned, $provider); |
||
38 | } |
||
39 | } |