Code Duplication    Length = 8-10 lines in 2 locations

tests/ClientTest.php 1 location

@@ 119-128 (lines=10) @@
116
     *
117
     * @return array
118
     */
119
    public function badSearchData()
120
    {
121
        return [
122
            // resource
123
            'resource is null' => [null, []],
124
            'resource is empty' => ['', []],
125
            'resource is whitespace' => [" \n\t", []],
126
            'resource is not a string' => [true, []],
127
        ];
128
    }
129
130
    /**
131
     * Verify basic behavior of get().

tests/ResponseTest.php 1 location

@@ 86-93 (lines=8) @@
83
     *
84
     * @return array
85
     */
86
    public function constructorBadData()
87
    {
88
        return [
89
            'httpCode is not a number' => ['NaN', [], []],
90
            'httpCode is less than 100' => [99, [], []],
91
            'httpCode is greater than 600' => [601, [], []],
92
        ];
93
    }
94
}
95