@@ -150,6 +150,8 @@ public function testMultipartRequest(): void
150150 ]),
151151 ]);
152152
153+ \usleep (500000 );
154+
153155 // Assert request
154156 $ this ->assertCount (2 , $ response ['post ' ]);
155157 $ this ->assertSame ('test-1-data ' , $ response ['post ' ]['test-1 ' ]);
@@ -161,30 +163,35 @@ public function testMultipartRequest(): void
161163 $ this ->assertSame ('txt ' , $ file ['extension ' ]);
162164 $ this ->assertSame (75 , $ file ['size ' ]);
163165 $ this ->assertSame ('781eaba2e9a92ddf42748bd8f56a9990459ea413 ' , $ file ['sha1 ' ]);
166+ $ this ->assertFileDoesNotExist ($ file ['realpath ' ]);
164167
165168 $ file = $ response ['files ' ]['file_one ' ][1 ];
166169 $ this ->assertSame ('test2.txt ' , $ file ['filename ' ]);
167170 $ this ->assertSame ('txt ' , $ file ['extension ' ]);
168171 $ this ->assertSame (47 , $ file ['size ' ]);
169172 $ this ->assertSame ('f69850b7b6dddf24c14581956f5b6aa3ae9cd54e ' , $ file ['sha1 ' ]);
173+ $ this ->assertFileDoesNotExist ($ file ['realpath ' ]);
170174
171175 $ file = $ response ['files ' ]['file_three ' ];
172176 $ this ->assertSame ('test3.txt ' , $ file ['filename ' ]);
173177 $ this ->assertSame ('txt ' , $ file ['extension ' ]);
174178 $ this ->assertSame (27 , $ file ['size ' ]);
175179 $ this ->assertSame ('4c129254b51981cba03e4c8aac82bb329880971a ' , $ file ['sha1 ' ]);
180+ $ this ->assertFileDoesNotExist ($ file ['realpath ' ]);
176181
177182 $ file = $ response ['files ' ]['image ' ];
178183 $ this ->assertSame ('dot.png ' , $ file ['filename ' ]);
179184 $ this ->assertSame ('png ' , $ file ['extension ' ]);
180185 $ this ->assertSame (70 , $ file ['size ' ]);
181186 $ this ->assertSame ('4a5eb7171b58e08a6881721e3b43d5a44419a2be ' , $ file ['sha1 ' ]);
187+ $ this ->assertFileDoesNotExist ($ file ['realpath ' ]);
182188
183189 $ file = $ response ['files ' ]['big_file ' ];
184190 $ this ->assertSame ('t.bin ' , $ file ['filename ' ]);
185191 $ this ->assertSame ('bin ' , $ file ['extension ' ]);
186192 $ this ->assertSame (5000000 , $ file ['size ' ]);
187193 $ this ->assertSame ('1310fa4a837135d0a5d13388a21e49474eea00ac ' , $ file ['sha1 ' ]);
194+ $ this ->assertFileDoesNotExist ($ file ['realpath ' ]);
188195 }
189196
190197 public function testRawRequest (): void
0 commit comments