Code Duplication    Length = 12-12 lines in 2 locations

app/Ship/core/Traits/TestsTraits/PhpUnit/TestsResponseHelperTrait.php 2 locations

@@ 22-33 (lines=12) @@
19
    /**
20
     * @param $keys
21
     */
22
    public function assertResponseContainKeys($keys)
23
    {
24
        if (!is_array($keys)) {
25
            $keys = (array)$keys;
26
        }
27
28
        $arrayResponse = $this->removeDataKeyFromResponse($this->getResponseContentArray());
29
30
        foreach ($keys as $key) {
31
            $this->assertTrue(array_key_exists($key, $arrayResponse));
32
        }
33
    }
34
35
    /**
36
     * @param $values
@@ 38-49 (lines=12) @@
35
    /**
36
     * @param $values
37
     */
38
    public function assertResponseContainValues($values)
39
    {
40
        if (!is_array($values)) {
41
            $values = (array)$values;
42
        }
43
44
        $arrayResponse = $this->removeDataKeyFromResponse($this->getResponseContentArray());
45
46
        foreach ($values as $value) {
47
            $this->assertTrue(in_array($value, $arrayResponse));
48
        }
49
    }
50
51
    /**
52
     * @param $data