Code Duplication    Length = 13-14 lines in 3 locations

Tests/Unit/MetaTest.php 3 locations

@@ 165-177 (lines=13) @@
162
        ]], $meta->getPoint());
163
    }
164
    
165
    public function testSetInvalidPointData() {
166
        $meta = new Meta();
167
        
168
        try {
169
            $meta
170
            ->setPoint('test')
171
            ->set('first_column', 'test value');
172
        } catch (\Exception $ex) {
173
            // General exception
174
            $this->assertEquals(0, $ex->getCode());
175
            $this->assertEquals('first_column has not been defined', $ex->getMessage());
176
        }  
177
    }
178
    
179
    public function testRetrievePointDataValue() {
180
        $meta = new Meta();
@@ 203-216 (lines=14) @@
200
        
201
    }
202
    
203
    public function testIncrementStringPointdata() {
204
        $meta = new Meta();
205
        
206
        try {
207
            $meta
208
            ->column('first_column')
209
            ->setPoint('test')
210
            ->increment('first_column', 100);
211
        } catch (\Exception $ex) {
212
            // General exception
213
            $this->assertEquals(0, $ex->getCode());
214
            $this->assertEquals('first_column is not a numeric column', $ex->getMessage());
215
        } 
216
    }
217
    
218
    public function testIncrementWithStringPointdata() {
219
        $meta = new Meta();
@@ 218-231 (lines=14) @@
215
        } 
216
    }
217
    
218
    public function testIncrementWithStringPointdata() {
219
        $meta = new Meta();
220
        
221
        try {
222
            $meta
223
            ->column('first_column', 0)
224
            ->setPoint('test')
225
            ->increment('first_column', 'SOME_STRING');
226
        } catch (\Exception $ex) {
227
            // General exception
228
            $this->assertEquals(0, $ex->getCode());
229
            $this->assertEquals('Can only increment using a numeric value', $ex->getMessage());
230
        } 
231
    }
232
    
233
    public function testGetData() {
234
        $meta = new Meta();