| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function tearDown() |
||
| 47 | { |
||
| 48 | // Empty all entity tables defined by this test after each test |
||
| 49 | foreach (static::ENTITIES_TO_EMPTY as $entityClass) { |
||
| 50 | $qb = $this->getEntityManager()->createQueryBuilder(); |
||
| 51 | $qb->delete($entityClass, 'x'); |
||
| 52 | $qb->getQuery()->execute(); |
||
| 53 | } |
||
| 54 | |||
| 55 | // Clear entity manager |
||
| 56 | $this->getEntityManager()->clear(); |
||
| 57 | } |
||
| 58 | } |
||
| 59 |