-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Implementation for assertArraySubset #1371 #1377
Implementation for assertArraySubset #1371 #1377
Conversation
* @param array|ArrayAccess $partial | ||
* @param array|ArrayAccess $array | ||
* @param string $message | ||
* @since Method available since Release 4.0.2 |
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.
This will be available in 4.3.0 (granted we get it merged in the next couple of days :P)
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.
Let's actually do 4.4.0 since 4.3.0 is going into beta soon.
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.
Oh no, I've just pushed with 4.3.0
Thanks, will push corrections ASAP ;) |
Thanks, @marcioAlmada :) |
ok, all set. |
function assertSubset($subset, $array, $strict = false, $message = '') | ||
{ | ||
return call_user_func_array( | ||
'PHPUnit_Framework_Assert::assertArrayPart', |
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.
Forgot this one :)
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.
Oops. It seems phpunit functional api is not being tested... would be nice to run all tests against the functional API too...
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.
@whatthejeff ok, I've just made a forced push with the fix so we don't pollute the commit history.
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.
@marcioAlmada Alright, I should have time to review/merge this later today. Thanks :)
fix code style
bump `@since` tag from 4.3.0 to 4.4.0, as defined in #1377 (comment)
Implementation for assertArraySubset #1371
Thanks for all your hard work, @marcioAlmada! |
And thank you for being an attentious maintainer :) |
I probably will not have time to open this PR later this weekend so I decided to do it now, just in case the feature discussed at #1371 get's approved :D
In case it gets approved but with a different assertion name I'll be happy to update the PR, just ping me.
Cheers.