Code Duplication    Length = 9-9 lines in 2 locations

tests/API/QueryTest.php 2 locations

@@ 107-115 (lines=9) @@
104
        $this->assertEquals(["category_leaf_expanded=Category Root~Athletics~Men's~Sneakers", "category_leaf_id=580003"], $split);
105
    }
106
107
    public function testSplitRangeAndMultipleCategory()
108
    {
109
        $query = new Query();
110
        $split = $query->splitRefinements("test=bob~price:10..20~category_leaf_expanded=Category Root~Athletics~Men's" .
111
            "~Sneakers~category_leaf_id=580003~color=BLUE~color=YELLOW~color=GREY");
112
        $this->assertEquals(["test=bob", "price:10..20",
113
            "category_leaf_expanded=Category Root~Athletics~Men's~Sneakers", "category_leaf_id=580003",
114
            "color=BLUE", "color=YELLOW", "color=GREY"], $split);
115
    }
116
117
    public function testSplitCategoryLong()
118
    {
@@ 117-125 (lines=9) @@
114
            "color=BLUE", "color=YELLOW", "color=GREY"], $split);
115
    }
116
117
    public function testSplitCategoryLong()
118
    {
119
        $query = new Query();
120
        $split = $query->splitRefinements("~category_leaf_expanded=Category Root~Athletics~Men's~Sneakers~category_leaf_id=580003~" .
121
            "color=BLUE~color=YELLOW~color=GREY~feature=Lace Up~feature=Light Weight~brand=Nike");
122
        $this->assertEquals(["category_leaf_expanded=Category Root~Athletics~Men's~Sneakers", "category_leaf_id=580003",
123
            "color=BLUE", "color=YELLOW", "color=GREY", "feature=Lace Up", "feature=Light Weight",
124
            "brand=Nike"], $split);
125
    }
126
127
    public function testNull()
128
    {