@@ -294,11 +294,11 @@ public function testValidMimeType()
294294 $ file
295295 ->expects ($ this ->once ())
296296 ->method ('getPathname ' )
297- ->will ($ this ->returnValue ( $ this -> path ) );
297+ ->willReturn ($ this ->path );
298298 $ file
299299 ->expects ($ this ->once ())
300300 ->method ('getMimeType ' )
301- ->will ( $ this -> returnValue ( 'image/jpg ' ) );
301+ ->willReturn ( 'image/jpg ' );
302302
303303 $ constraint = new File ([
304304 'mimeTypes ' => ['image/png ' , 'image/jpg ' ],
@@ -318,11 +318,11 @@ public function testValidWildcardMimeType()
318318 $ file
319319 ->expects ($ this ->once ())
320320 ->method ('getPathname ' )
321- ->will ($ this ->returnValue ( $ this -> path ) );
321+ ->willReturn ($ this ->path );
322322 $ file
323323 ->expects ($ this ->once ())
324324 ->method ('getMimeType ' )
325- ->will ( $ this -> returnValue ( 'image/jpg ' ) );
325+ ->willReturn ( 'image/jpg ' );
326326
327327 $ constraint = new File ([
328328 'mimeTypes ' => ['image/* ' ],
@@ -342,11 +342,11 @@ public function testInvalidMimeType()
342342 $ file
343343 ->expects ($ this ->once ())
344344 ->method ('getPathname ' )
345- ->will ($ this ->returnValue ( $ this -> path ) );
345+ ->willReturn ($ this ->path );
346346 $ file
347347 ->expects ($ this ->once ())
348348 ->method ('getMimeType ' )
349- ->will ( $ this -> returnValue ( 'application/pdf ' ) );
349+ ->willReturn ( 'application/pdf ' );
350350
351351 $ constraint = new File ([
352352 'mimeTypes ' => ['image/png ' , 'image/jpg ' ],
@@ -373,11 +373,11 @@ public function testInvalidWildcardMimeType()
373373 $ file
374374 ->expects ($ this ->once ())
375375 ->method ('getPathname ' )
376- ->will ($ this ->returnValue ( $ this -> path ) );
376+ ->willReturn ($ this ->path );
377377 $ file
378378 ->expects ($ this ->once ())
379379 ->method ('getMimeType ' )
380- ->will ( $ this -> returnValue ( 'application/pdf ' ) );
380+ ->willReturn ( 'application/pdf ' );
381381
382382 $ constraint = new File ([
383383 'mimeTypes ' => ['image/* ' , 'image/jpg ' ],
0 commit comments