Code Duplication    Length = 13-13 lines in 2 locations

tests/Query/Condition/ConditionTest.php 1 location

@@ 31-43 (lines=13) @@
28
     */
29
    protected $query;
30
31
    public function setUp()
32
    {
33
        parent::setUp();
34
35
        $adapterMock = m::mock('Nip\Database\Adapters\MySQLi')->shouldDeferMissing();
36
        $adapterMock->shouldReceive('cleanData')->andReturnUsing(function ($data) {
37
            return $data;
38
        });
39
40
        $this->connection = new Connection(false);
41
        $this->connection->setAdapter($adapterMock);
42
        $this->query = $this->connection->newQuery();
43
    }
44
45
    public function testParseString()
46
    {

tests/Query/SelectTest.php 1 location

@@ 182-194 (lines=13) @@
179
        );
180
    }
181
182
    protected function setUp()
183
    {
184
        parent::setUp();
185
        $this->selectQuery = new Select();
186
187
        $adapterMock = m::mock('Nip\Database\Adapters\MySQLi')->shouldDeferMissing();
188
        $adapterMock->shouldReceive('cleanData')->andReturnUsing(function ($data) {
189
            return $data;
190
        });
191
        $this->connection = new Connection(false);
192
        $this->connection->setAdapter($adapterMock);
193
        $this->selectQuery->setManager($this->connection);
194
    }
195
}
196