Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class SqlServerDblibDatabaseTest extends BaseDatabase |
||
13 | { |
||
14 | /** |
||
15 | * @var Migration |
||
16 | */ |
||
17 | protected $migrate = null; |
||
18 | |||
19 | protected $scheme = "dblib"; |
||
20 | |||
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 | Migration::registerDatabase(DblibDatabase::class); |
||
35 | |||
36 | $this->migrate = new Migration(new Uri($uri), __DIR__ . '/../example/sql_server', true, $this->migrationTable); |
||
37 | parent::setUp(); |
||
38 | } |
||
39 | |||
40 | public function getExpectedUsersVersion1() |
||
49 | ]; |
||
50 | } |
||
53 |