Code Duplication    Length = 13-13 lines in 3 locations

tests/MigrationTest.php 3 locations

@@ 114-126 (lines=13) @@
111
        );
112
    }
113
114
    public function testGetFileContent_1()
115
    {
116
        $this->assertEquals(
117
            [
118
                "file" => __DIR__ . '/dirstructure/migrations/up/00001.sql',
119
                "description" => "this is a test",
120
                "exists" => true,
121
                "checksum" => "b937afa57e363c9244fa30844dd11d312694f697",
122
                "content" => "-- @description: this is a test\n\nselect * from mysql.users;\n",
123
            ],
124
            $this->object->getFileContent(__DIR__ . '/dirstructure/migrations/up/00001.sql')
125
        );
126
    }
127
128
    public function testGetFileContent_2()
129
    {
@@ 128-140 (lines=13) @@
125
        );
126
    }
127
128
    public function testGetFileContent_2()
129
    {
130
        $this->assertEquals(
131
            [
132
                "file" => __DIR__ . '/dirstructure/migrations/up/00002.sql',
133
                "description" => "another test",
134
                "exists" => true,
135
                "checksum" => "fd8ab8176291c2dcbf0d91564405e0f98f0cd77e",
136
                "content" => "--   @description:  another test\n\nselect * from dual;",
137
            ],
138
            $this->object->getFileContent(__DIR__ . '/dirstructure/migrations/up/00002.sql')
139
        );
140
    }
141
142
    public function testGetFileContent_3()
143
    {
@@ 142-154 (lines=13) @@
139
        );
140
    }
141
142
    public function testGetFileContent_3()
143
    {
144
        $this->assertEquals(
145
            [
146
                "file" => __DIR__ . '/dirstructure/migrations/up/00003.sql',
147
                "description" => "no description provided. Pro tip: use `-- @description:` to define one.",
148
                "exists" => true,
149
                "checksum" => "73faaa68e2f60c11e75a9ccc18528e0ffa15127a",
150
                "content" => "select something from sometable;",
151
            ],
152
            $this->object->getFileContent(__DIR__ . '/dirstructure/migrations/up/00003.sql')
153
        );
154
    }
155
}
156