Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function testInstantiate() |
||
37 | { |
||
38 | $registry = new Registry($this->getContainer()); |
||
39 | |||
40 | $this->assertTrue($registry->has(TestType::class)); |
||
41 | $type = $registry->get(TestType::class); |
||
42 | $this->assertInstanceOf(TestType::class, $type); |
||
43 | $this->assertSame($type, $registry->get(TestType::class)); |
||
44 | $this->assertTrue($registry->has(TestType::class)); |
||
45 | } |
||
46 | |||
54 |