File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,17 +151,17 @@ public function verifyNeverInvoked($name, $params = null)
151151 $ calls = $ this ->getCallsForMethod ($ name );
152152 $ separator = $ this ->callSyntax ($ name );
153153
154- if (is_array ($ params )) {
155- if (empty ($ calls )) return ;
156- $ params = ArgumentsFormatter::toString ($ params );
157- foreach ($ calls as $ args ) {
158- if ($ this ->onlyExpectedArguments ($ params , $ args ) === $ params ) {
159- throw new fail (sprintf ($ this ->neverInvoked , $ this ->className ));
160- }
161- }
162- return ;
163- }
164- if (count ($ calls )) throw new fail (sprintf ($ this ->neverInvoked , $ this ->className .$ separator .$ name ));
154+ if (is_array ($ params )) {
155+ if (empty ($ calls )) return ;
156+ $ params = ArgumentsFormatter::toString ($ params );
157+ foreach ($ calls as $ args ) {
158+ if ($ this ->onlyExpectedArguments ($ params , $ args ) === $ params ) {
159+ throw new fail (sprintf ($ this ->neverInvoked , $ this ->className ));
160+ }
161+ }
162+ return ;
163+ }
164+ if (count ($ calls )) throw new fail (sprintf ($ this ->neverInvoked , $ this ->className .$ separator .$ name ));
165165 }
166166
167167}
You can’t perform that action at this time.
0 commit comments