| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function testgetFactoryReturnsAssociatedFactory() |
||
| 38 | { |
||
| 39 | $registry = new Registry(); |
||
| 40 | |||
| 41 | $factory = $this->prophesize(Factory::class)->reveal(); |
||
| 42 | |||
| 43 | $registry->register(self::class, $factory); |
||
| 44 | |||
| 45 | $this->assertEquals( |
||
| 46 | $factory, |
||
| 47 | $registry->getFactory($this) |
||
| 48 | ); |
||
| 49 | } |
||
| 50 | } |
||
| 51 |