-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix verifyNeverInvoked with array params #119
Conversation
tests/unit/VerifierTest.php
Outdated
|
||
public function testverifyWithMutliplesParams() | ||
{ | ||
$this->specify('works for instance proxy', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected 1 space after FUNCTION keyword; 0 found
tests/unit/VerifierTest.php
Outdated
$user->setNameAndInfo("Bob Jones", "Infos"); | ||
|
||
// verify | ||
$user->verifyInvoked('setNameAndInfo',["Bob Jones", "Infos"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No space found after comma in function call
tests/unit/VerifierTest.php
Outdated
$user->verifyNeverInvoked('setNameAndInfo', ["Bob Jones", "Infos"]); | ||
// If i dont fail, my test fail | ||
throw new fail('verifyNeverInvoked'); | ||
} catch (\Exception $e) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Expected 1 newline after opening brace; 0 found
- Closing brace must be on a line by itself
$user->verifyNeverInvoked('setName', "Bob Jones"); | ||
// If i dont fail, my test fail | ||
throw new fail('verifyNeverInvoked'); | ||
} catch (\Exception $e) {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Expected 1 newline after opening brace; 0 found
- Closing brace must be on a line by itself
$user->verifyNeverInvoked('setNameAndInfo', ["Bob Jones", "Infos"]); | ||
// If i dont fail, my test fail | ||
throw new fail('verifyNeverInvoked'); | ||
} catch (\Exception $e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected 1 newline after opening brace; 2 found
Thank you |
This is a fix for verifyNeverInvoked when you use it with array (for function with multiple params)
Before the fix, something like this worked :