| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | public function getEntityManagerMock() { |
||
| 24 | $entityManagerMock = $this |
||
| 25 | ->getMockBuilder('Doctrine\ORM\EntityManager') |
||
| 26 | ->disableOriginalConstructor() |
||
| 27 | ->getMock() |
||
| 28 | ; |
||
| 29 | $entityManagerMock |
||
| 30 | ->expects($this->any()) |
||
| 31 | ->method('getRepository') |
||
| 32 | ->willReturnCallback([$this, 'getRepositoryMock']) |
||
| 33 | ; |
||
| 34 | return $entityManagerMock; |
||
| 35 | } |
||
| 36 | |||
| 67 |