-
Notifications
You must be signed in to change notification settings - Fork 19
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
Explicit message for "json node should have :nb elements" #31
base: main
Are you sure you want to change the base?
Conversation
Good catch @jdeniau ! It seems that |
Hi @Jean-Beru . I created #33 for that 👍 |
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.
Can you add a unit test too ?
$this->assertSame( | ||
$count, | ||
$actualCount, | ||
'The node "'.$node.'" contains '.$actualCount.' elements ('.$count.' expected).' |
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.
'The node "'.$node.'" contains '.$actualCount.' elements ('.$count.' expected).' | |
sprintf("The node '%s' contains %d elements, %d expected.", $node, $actualCount, $count) |
$count, | ||
$actualCount, | ||
'The node "'.$node.'" contains '.$actualCount.' elements ('.$count.' expected).' | ||
); |
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.
Can you add a unit test too ?
Make the output of
@Then the JSON node :node should have :count element(s)
more explicitHere the diff of the before / after output: