| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class TestEnvironment { |
||
| 13 | |||
| 14 | private TestAddressChangeContextFactory $factory; |
||
| 15 | |||
| 16 | private function __construct() { |
||
| 21 | ] |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | |||
| 25 | public static function newInstance(): self { |
||
| 31 | } |
||
| 32 | |||
| 33 | private function install(): void { |
||
| 34 | $schema = new SchemaCreator( $this->getEntityManager() ); |
||
| 35 | |||
| 36 | try { |
||
| 37 | $schema->dropSchema(); |
||
| 38 | } catch ( \Exception $ex ) { |
||
|
|
|||
| 39 | } |
||
| 40 | |||
| 41 | $schema->createSchema(); |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getEntityManager(): EntityManager { |
||
| 46 | } |
||
| 47 | |||
| 49 |