Code Duplication    Length = 8-9 lines in 3 locations

tests/Query/SelectTest.php 3 locations

@@ 43-50 (lines=8) @@
40
        );
41
    }
42
43
    public function testSimpleSelectDistinct()
44
    {
45
        $this->selectQuery->cols('id, name')->options('distinct')->from('table x')->where('id = 5');
46
        static::assertEquals(
47
            "SELECT DISTINCT id, name FROM table x WHERE id = 5",
48
            $this->selectQuery->assemble()
49
        );
50
    }
51
52
    public function testWhereAndWhere()
53
    {
@@ 52-60 (lines=9) @@
49
        );
50
    }
51
52
    public function testWhereAndWhere()
53
    {
54
        $this->selectQuery->cols('id, name')->from('table x');
55
        $this->selectQuery->where('id = 5')->where("active = 'yes'");
56
        static::assertEquals(
57
            "SELECT id, name FROM table x WHERE id = 5 AND active = 'yes'",
58
            $this->selectQuery->assemble()
59
        );
60
    }
61
62
    public function testWhereOrWhere()
63
    {
@@ 62-70 (lines=9) @@
59
        );
60
    }
61
62
    public function testWhereOrWhere()
63
    {
64
        $this->selectQuery->cols('id, name')->from('table x');
65
        $this->selectQuery->where('id = 5')->orWhere('id = 7');
66
        static::assertEquals(
67
            "SELECT id, name FROM table x WHERE id = 5 OR id = 7",
68
            $this->selectQuery->assemble()
69
        );
70
    }
71
72
    public function testInitializeCondition()
73
    {