@@ -45,30 +45,30 @@ public function it_creates_function_arguments_for_ReflectionFunction(
4545 ReflectionParameter $ param1 ,
4646 ReflectionParameter $ param2
4747 ) {
48- $ this ->set ('arg1 ' , ' 123 ' );
49- $ this ->set ('arg2 ' , ' 456 ' );
50- $ this ->set ('arg3 ' , ' 789 ' );
48+ $ this ->set ('arg1 ' , $ arg1 = new \ stdClass () );
49+ $ this ->set ('arg2 ' , $ arg2 = new \ stdClass () );
50+ $ this ->set ('arg3 ' , $ arg3 = new \ stdClass () );
5151
5252 $ function ->getParameters ()->willReturn ([$ param1 , $ param2 ]);
5353 $ param1 ->getName ()->willReturn ('arg1 ' );
5454 $ param2 ->getName ()->willReturn ('arg3 ' );
5555
56- $ this ->getArgumentsFor ($ function )->shouldReturn ([' 123 ' , ' 789 ' ]);
56+ $ this ->getArgumentsFor ($ function )->shouldReturn ([$ arg1 , $ arg3 ]);
5757 }
5858
5959 public function it_creates_null_function_arguments_for_ReflectionFunction_if_no_collaborator_found (
6060 ReflectionFunction $ function ,
6161 ReflectionParameter $ param1 ,
6262 ReflectionParameter $ param2
6363 ) {
64- $ this ->set ('arg1 ' , ' 123 ' );
65- $ this ->set ('arg2 ' , ' 456 ' );
66- $ this ->set ('arg3 ' , ' 789 ' );
64+ $ this ->set ('arg1 ' , $ arg1 = new \ stdClass () );
65+ $ this ->set ('arg2 ' , $ arg2 = new \ stdClass () );
66+ $ this ->set ('arg3 ' , $ arg3 = new \ stdClass () );
6767
6868 $ function ->getParameters ()->willReturn ([$ param1 , $ param2 ]);
6969 $ param1 ->getName ()->willReturn ('arg4 ' );
7070 $ param2 ->getName ()->willReturn ('arg3 ' );
7171
72- $ this ->getArgumentsFor ($ function )->shouldReturn ([null , ' 789 ' ]);
72+ $ this ->getArgumentsFor ($ function )->shouldReturn ([null , $ arg3 ]);
7373 }
7474}
0 commit comments