File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function __construct(Request $request = null)
30
30
}
31
31
32
32
/**
33
- * @return Request | null
33
+ * @return Request| null
34
34
*/
35
35
public function getRequest ()
36
36
{
Original file line number Diff line number Diff line change @@ -476,14 +476,19 @@ public function testMatchRequestNotFound()
476
476
public function testMatchWithRequestMatchersNotFound ()
477
477
{
478
478
$ url = '/test ' ;
479
- $ request = Request::create ('/test ' );
479
+ $ expected = Request::create ('/test ' );
480
+ $ expected ->server ->remove ('REQUEST_TIME_FLOAT ' );
480
481
481
482
$ high = $ this ->createMock (RequestMatcher::class);
482
483
483
484
$ high
484
485
->expects ($ this ->once ())
485
486
->method ('matchRequest ' )
486
- ->with ($ request )
487
+ ->with ($ this ->callback (function (Request $ actual ) use ($ expected ): bool {
488
+ $ actual ->server ->remove ('REQUEST_TIME_FLOAT ' );
489
+
490
+ return $ actual == $ expected ;
491
+ }))
487
492
->will ($ this ->throwException (new ResourceNotFoundException ()))
488
493
;
489
494
You can’t perform that action at this time.
0 commit comments