| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function setUp(): void |
||
| 22 | { |
||
| 23 | $host = getenv('MSSQL_TEST_HOST'); |
||
| 24 | if (empty($host)) { |
||
| 25 | $host = "127.0.0.1"; |
||
| 26 | } |
||
| 27 | $password = getenv('MSSQL_PASSWORD'); |
||
| 28 | if (empty($password)) { |
||
| 29 | $password = 'Pa55word'; |
||
| 30 | } |
||
| 31 | |||
| 32 | $uri = $this->scheme . "://sa:${password}@${host}/migratedatabase"; |
||
| 33 | |||
| 34 | $this->migrate = new Migration(new Uri($uri), __DIR__ . '/../example/sql_server', true, $this->migrationTable); |
||
| 35 | $this->migrate->registerDatabase($this->scheme, DblibDatabase::class); |
||
| 36 | parent::setUp(); |
||
| 37 | } |
||
| 52 |