| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public static function purgeDatabase(BeforeFeatureScope $scope): void |
||
| 25 | { |
||
| 26 | if (\in_array('disable-fixtures', $scope->getFeature()->getTags(), true)) { |
||
| 27 | self::$entityManager->getConnection()->getConfiguration()->setSQLLogger(null); |
||
| 28 | $purger = new ORMPurger(self::$entityManager); |
||
| 29 | $purger->purge(); |
||
| 30 | self::$entityManager->clear(); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | } |
||
| 34 |