Code Duplication    Length = 10-10 lines in 2 locations

tests/DataWrapperTest.php 2 locations

@@ 113-122 (lines=10) @@
110
        $wrapper['someField'] = 'some string';
111
    }
112
    
113
    public function testCheckFieldDirect()
114
    {
115
        $wrapper = $this->prepareWrapper(FALSE);
116
        $this->assertTrue($wrapper->check(['=','field1', 'value1']));
117
        $this->assertFalse($wrapper->check(['=','field1', 'wrongValue']));
118
        $this->assertTrue($wrapper->check(['=','notExistField', null]));
119
        $this->assertTrue($wrapper->check(['=','arrayObj.count()', 2]));
120
        $this->assertTrue($wrapper->check(['>','arrayObj.count()', 1]));
121
        //
122
    }
123
    
124
    public function testCheckFieldRelated()
125
    {
@@ 124-133 (lines=10) @@
121
        //
122
    }
123
    
124
    public function testCheckFieldRelated()
125
    {
126
        $wrapper = $this->prepareWrapper(FALSE);
127
        $this->assertTrue($wrapper->check(['*=','field1', 'array.field1']));
128
        $this->assertFalse($wrapper->check(['*=','field1', 'notExistField']));
129
        $this->assertTrue($wrapper->check(['*=','notExistField', 'notExistField2']));
130
        $this->assertTrue($wrapper->check(['*=','arrayObj.count()', 'arrayObj.count()']));
131
        $this->assertTrue($wrapper->check(['*>=','arrayObj.count()', 'arrayObj.count()']));
132
        //
133
    }
134
    
135
    public function testCheckLogical()
136
    {