File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -151,17 +151,17 @@ public function verifyNeverInvoked($name, $params = null)
151
151
$ calls = $ this ->getCallsForMethod ($ name );
152
152
$ separator = $ this ->callSyntax ($ name );
153
153
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 ));
165
165
}
166
166
167
167
}
You can’t perform that action at this time.
0 commit comments