@@ -684,31 +684,31 @@ public function testControllerCallActionMethodParameters()
684
684
unset($ _SERVER ['__test.controller_callAction_parameters ' ]);
685
685
$ router ->get (($ str = Str::random ()).'/{one}/{two} ' , RouteTestAnotherControllerWithParameterStub::class.'@oneArgument ' );
686
686
$ router ->dispatch (Request::create ($ str .'/one/two ' , 'GET ' ));
687
- $ this ->assertEquals (['one ' => 'one ' , 'two ' => 'two ' ], $ _SERVER ['__test.controller_callAction_parameters ' ]);
687
+ $ this ->assertSame (['one ' => 'one ' , 'two ' => 'two ' ], $ _SERVER ['__test.controller_callAction_parameters ' ]);
688
688
689
689
// Has two arguments and receives two
690
690
unset($ _SERVER ['__test.controller_callAction_parameters ' ]);
691
691
$ router ->get (($ str = Str::random ()).'/{one}/{two} ' , RouteTestAnotherControllerWithParameterStub::class.'@twoArguments ' );
692
692
$ router ->dispatch (Request::create ($ str .'/one/two ' , 'GET ' ));
693
- $ this ->assertEquals (['one ' => 'one ' , 'two ' => 'two ' ], $ _SERVER ['__test.controller_callAction_parameters ' ]);
693
+ $ this ->assertSame (['one ' => 'one ' , 'two ' => 'two ' ], $ _SERVER ['__test.controller_callAction_parameters ' ]);
694
694
695
695
// Has two arguments but with different names from the ones passed from the route
696
696
unset($ _SERVER ['__test.controller_callAction_parameters ' ]);
697
697
$ router ->get (($ str = Str::random ()).'/{one}/{two} ' , RouteTestAnotherControllerWithParameterStub::class.'@differentArgumentNames ' );
698
698
$ router ->dispatch (Request::create ($ str .'/one/two ' , 'GET ' ));
699
- $ this ->assertEquals (['one ' => 'one ' , 'two ' => 'two ' ], $ _SERVER ['__test.controller_callAction_parameters ' ]);
699
+ $ this ->assertSame (['one ' => 'one ' , 'two ' => 'two ' ], $ _SERVER ['__test.controller_callAction_parameters ' ]);
700
700
701
701
// Has two arguments with same name but argument order is reversed
702
702
unset($ _SERVER ['__test.controller_callAction_parameters ' ]);
703
703
$ router ->get (($ str = Str::random ()).'/{one}/{two} ' , RouteTestAnotherControllerWithParameterStub::class.'@reversedArguments ' );
704
704
$ router ->dispatch (Request::create ($ str .'/one/two ' , 'GET ' ));
705
- $ this ->assertEquals (['one ' => 'one ' , 'two ' => 'two ' ], $ _SERVER ['__test.controller_callAction_parameters ' ]);
705
+ $ this ->assertSame (['two ' => 'two ' , 'one ' => 'one ' ], $ _SERVER ['__test.controller_callAction_parameters ' ]);
706
706
707
707
// No route parameters while method has parameters
708
708
unset($ _SERVER ['__test.controller_callAction_parameters ' ]);
709
709
$ router ->get (($ str = Str::random ()).'' , RouteTestAnotherControllerWithParameterStub::class.'@oneArgument ' );
710
710
$ router ->dispatch (Request::create ($ str , 'GET ' ));
711
- $ this ->assertEquals ([], $ _SERVER ['__test.controller_callAction_parameters ' ]);
711
+ $ this ->assertSame ([], $ _SERVER ['__test.controller_callAction_parameters ' ]);
712
712
713
713
// With model bindings
714
714
unset($ _SERVER ['__test.controller_callAction_parameters ' ]);
0 commit comments