Code Duplication    Length = 15-15 lines in 3 locations

tests/MysqlCommandTest.php 1 location

@@ 5-19 (lines=15) @@
2
3
require_once 'BaseCommand.php';
4
5
class MysqlCommandTest extends BaseCommand
6
{
7
    protected $uri = 'mysql://root:password@mysql-container/migratedatabase';
8
9
    /**
10
     * @var \ByJG\DbMigration\Migration
11
     */
12
    protected $migrate = null;
13
14
    public function setUp()
15
    {
16
        $this->migrate = new \ByJG\DbMigration\Migration(new \ByJG\Util\Uri($this->uri), __DIR__ . '/../example/mysql');
17
        parent::setUp();
18
    }
19
}
20

tests/PostgresCommandTest.php 1 location

@@ 5-19 (lines=15) @@
2
3
require_once 'BaseCommand.php';
4
5
class PostgresCommandTest extends BaseCommand
6
{
7
    protected $uri = 'pgsql://postgres:password@postgres-container/migratedatabase';
8
9
    /**
10
     * @var \ByJG\DbMigration\Migration
11
     */
12
    protected $migrate = null;
13
14
    public function setUp()
15
    {
16
        $this->migrate = new \ByJG\DbMigration\Migration(new \ByJG\Util\Uri($this->uri), __DIR__ . '/../example/postgres');
17
        parent::setUp();
18
    }
19
}
20

tests/SqliteCommandTest.php 1 location

@@ 5-19 (lines=15) @@
2
3
require_once 'BaseCommand.php';
4
5
class SqliteCommandTest extends BaseCommand
6
{
7
    protected $uri = 'sqlite:///tmp/teste.sqlite';
8
9
    /**
10
     * @var \ByJG\DbMigration\Migration
11
     */
12
    protected $migrate = null;
13
14
    public function setUp()
15
    {
16
        $this->migrate = new \ByJG\DbMigration\Migration(new \ByJG\Util\Uri($this->uri), __DIR__ . '/../example/sqlite');
17
        parent::setUp();
18
    }
19
}
20