Code Duplication    Length = 10-10 lines in 2 locations

tests/API/JsonDeserializeTest.php 2 locations

@@ 110-119 (lines=10) @@
107
        $this->assertEquals($json->url, $clusterRecord->getUrl());
108
    }
109
110
    public function testDeserializeCluster()
111
    {
112
        /** @var Cluster $cluster */
113
        $cluster = $this->deserialize(Json::$CLUSTER, 'GroupByInc\API\Model\Cluster');
114
        $this->assertEquals(Object::$CLUSTER, $cluster);
115
116
        $json = json_decode(Json::$CLUSTER);
117
        $this->assertEquals($json->term, $cluster->getTerm());
118
        $this->assertEquals([Object::$CLUSTER_RECORD], $cluster->getRecords());
119
    }
120
121
    public function testDeserializeRefinementMatchValue()
122
    {
@@ 133-142 (lines=10) @@
130
        $this->assertEquals($json->value, $refinementMatchValue->getValue());
131
    }
132
133
    public function testDeserializeRefinementMatch()
134
    {
135
        /** @var RefinementMatch $refinementMatch */
136
        $refinementMatch = $this->deserialize(Json::$REFINEMENT_MATCH, 'GroupByInc\API\Model\RefinementMatch');
137
        $this->assertEquals(Object::$REFINEMENT_MATCH, $refinementMatch);
138
139
        $json = json_decode(Json::$REFINEMENT_MATCH);
140
        $this->assertEquals($json->name, $refinementMatch->getName());
141
        $this->assertEquals([Object::$REFINEMENT_MATCH_VALUE], $refinementMatch->getValues());
142
    }
143
144
    public function testDeserializeRecord()
145
    {