Code Duplication    Length = 10-10 lines in 2 locations

tests/DataWrapperTest.php 2 locations

@@ 102-111 (lines=10) @@
99
        new DataWrapper('some string');
100
    }
101
    
102
    public function testCheckFieldDirect()
103
    {
104
        $wrapper = $this->prepareWrapper(FALSE);
105
        $this->assertTrue($wrapper->check(['=','field1', 'value1']));
106
        $this->assertFalse($wrapper->check(['=','field1', 'wrongValue']));
107
        $this->assertTrue($wrapper->check(['=','notExistField', null]));
108
        $this->assertTrue($wrapper->check(['=','arrayObj.count()', 2]));
109
        $this->assertTrue($wrapper->check(['>','arrayObj.count()', 1]));
110
        //
111
    }
112
    
113
    public function testCheckFieldRelated()
114
    {
@@ 113-122 (lines=10) @@
110
        //
111
    }
112
    
113
    public function testCheckFieldRelated()
114
    {
115
        $wrapper = $this->prepareWrapper(FALSE);
116
        $this->assertTrue($wrapper->check(['*=','field1', 'array.field1']));
117
        $this->assertFalse($wrapper->check(['*=','field1', 'notExistField']));
118
        $this->assertTrue($wrapper->check(['*=','notExistField', 'notExistField2']));
119
        $this->assertTrue($wrapper->check(['*=','arrayObj.count()', 'arrayObj.count()']));
120
        $this->assertTrue($wrapper->check(['*>=','arrayObj.count()', 'arrayObj.count()']));
121
        //
122
    }
123
    
124
    public function testCheckLogical()
125
    {