Code Duplication    Length = 16-16 lines in 2 locations

tests/MysqlDatabaseTest.php 1 location

@@ 8-23 (lines=16) @@
5
/**
6
 * @requires extension pdo_mysql
7
 */
8
class MysqlDatabaseTest extends BaseDatabase
9
{
10
    protected $uri = 'mysql://root:password@mysql-container/migratedatabase';
11
12
    /**
13
     * @var \ByJG\DbMigration\Migration
14
     */
15
    protected $migrate = null;
16
17
    public function setUp()
18
    {
19
        $this->migrate = new \ByJG\DbMigration\Migration(new \ByJG\Util\Uri($this->uri), __DIR__ . '/../example/mysql');
20
        $this->migrate->registerDatabase("mysql", \ByJG\DbMigration\Database\MySqlDatabase::class);
21
        parent::setUp();
22
    }
23
}
24

tests/PostgresDatabaseTest.php 1 location

@@ 9-24 (lines=16) @@
6
/**
7
 * @requires extension pdo_pgsql
8
 */
9
class PostgresDatabaseTest extends BaseDatabase
10
{
11
    protected $uri = 'pgsql://postgres:password@postgres-container/migratedatabase';
12
13
    /**
14
     * @var \ByJG\DbMigration\Migration
15
     */
16
    protected $migrate = null;
17
18
    public function setUp()
19
    {
20
        $this->migrate = new \ByJG\DbMigration\Migration(new \ByJG\Util\Uri($this->uri), __DIR__ . '/../example/postgres');
21
        $this->migrate->registerDatabase("pgsql", \ByJG\DbMigration\Database\PgsqlDatabase::class);
22
        parent::setUp();
23
    }
24
}
25