Code Duplication    Length = 9-9 lines in 2 locations

tests/ValidatorTest.php 2 locations

@@ 180-188 (lines=9) @@
177
     * @expectedException InvalidArgumentException
178
     * @expectedExceptionMessage Expected custom individual messages to be of type array, string given
179
     */
180
    public function testValidateWithWrongCustomIndividualMessagesType()
181
    {
182
        $this->validator->validate($this->request, [
183
            'username' => [
184
                'rules' => V::length(8),
185
                'messages' => ''
186
            ]
187
        ]);
188
    }
189
190
    public function testValidateWithCustomIndividualMessage()
191
    {
@@ 218-226 (lines=9) @@
215
     * @expectedException InvalidArgumentException
216
     * @expectedExceptionMessage Expected custom message to be of type string, integer given
217
     */
218
    public function testValidateWithWrongCustomSingleMessageType()
219
    {
220
        $this->validator->validate($this->request, [
221
            'username' => [
222
                'rules' => V::length(8)->alnum(),
223
                'message' => 10
224
            ]
225
        ]);
226
    }
227
228
    public function testValidateWithCustomSingleMessage()
229
    {