Code Duplication    Length = 11-13 lines in 3 locations

tests/UploadedFileTest.php 3 locations

@@ 31-42 (lines=12) @@
28
        }
29
    }
30
31
    public function invalidStreams()
32
    {
33
        return [
34
            'null' => [null],
35
            'true' => [true],
36
            'false' => [false],
37
            'int' => [1],
38
            'float' => [1.1],
39
            'array' => [['filename']],
40
            'object' => [(object) ['filename']],
41
        ];
42
    }
43
44
    /**
45
     * @dataProvider invalidStreams
@@ 81-91 (lines=11) @@
78
        new UploadedFile(fopen('php://temp', 'wb+'), 0, $status);
79
    }
80
81
    public function invalidFilenamesAndMediaTypes()
82
    {
83
        return [
84
            'true' => [true],
85
            'false' => [false],
86
            'int' => [1],
87
            'float' => [1.1],
88
            'array' => [['string']],
89
            'object' => [(object) ['string']],
90
        ];
91
    }
92
93
    /**
94
     * @dataProvider invalidFilenamesAndMediaTypes
@@ 155-167 (lines=13) @@
152
        $this->assertEquals($stream->__toString(), file_get_contents($to));
153
    }
154
155
    public function invalidMovePaths()
156
    {
157
        return [
158
            'null' => [null],
159
            'true' => [true],
160
            'false' => [false],
161
            'int' => [1],
162
            'float' => [1.1],
163
            'empty' => [''],
164
            'array' => [['filename']],
165
            'object' => [(object) ['filename']],
166
        ];
167
    }
168
169
    /**
170
     * @dataProvider invalidMovePaths