| Conditions | 3 |
| Paths | 4 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function setUp() |
||
| 28 | { |
||
| 29 | $host = getenv('MSSQL_TEST_HOST'); |
||
| 30 | if (empty($host)) { |
||
| 31 | $host = "127.0.0.1"; |
||
| 32 | } |
||
| 33 | $password = getenv('MSSQL_PASSWORD'); |
||
| 34 | if (empty($password)) { |
||
| 35 | $password = 'Pa55word'; |
||
| 36 | } |
||
| 37 | |||
| 38 | $uri = "dblib://sa:${password}@${host}/migratedatabase"; |
||
| 39 | |||
| 40 | $this->migrate = new Migration(new Uri($uri), __DIR__ . '/../example/sql_server', true, $this->migrationTable); |
||
| 41 | $this->migrate->registerDatabase("dblib", DblibDatabase::class); |
||
| 42 | parent::setUp(); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |