Code Duplication    Length = 13-13 lines in 2 locations

tests/MetadataTest.php 2 locations

@@ 35-47 (lines=13) @@
32
        $this->assertArrayHasKey('var', $fields['age']);
33
        $this->assertEquals([['int','age']],$fields['age']['var']);
34
    }
35
    public function testDirectMethods()
36
    {
37
        $helper = new MetaData(
38
            dummy\DummyModel::class,
39
            ['@var'=>'var','@param'=>'param', '@return'=>'return']);
40
        
41
        $this->assertEquals(
42
            $helper->methods(true),
43
            [
44
                'hydrate'=>['return'=>[['void']],'param'=>[['array', '$data']]],
45
            ]
46
        );
47
    }
48
    
49
    public function testExtendedFields()
50
    {
@@ 71-83 (lines=13) @@
68
        $this->assertEquals([['int','age']],$fields['age']['var']);
69
    }
70
    
71
    public function testExtendedMethods()
72
    {
73
        $helper = new MetaData(
74
            dummy\DummyExtendedModel::class,
75
            ['@var'=>'var','@param'=>'param', '@return'=>'return']);
76
        
77
        $this->assertEquals(
78
            $helper->methods(true),
79
            [
80
                'hydrate'=>['return'=>[['void']],'param'=>[['array', '$data']]],
81
            ]
82
        );
83
    }
84
    
85
    public function testClassRules()
86
    {