Skip to content
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

Merged
merged 8 commits into from
Aug 12, 2014
Merged

Implementation for assertArraySubset #1371 #1377

merged 8 commits into from
Aug 12, 2014

Conversation

marcioAlmada
Copy link
Contributor

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.

* @param array|ArrayAccess $partial
* @param array|ArrayAccess $array
* @param string $message
* @since Method available since Release 4.0.2
Copy link
Contributor

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)

Copy link
Contributor

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.

Copy link
Contributor Author

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

@marcioAlmada
Copy link
Contributor Author

Thanks, will push corrections ASAP ;)

@whatthejeff
Copy link
Contributor

Thanks, @marcioAlmada :)

@marcioAlmada
Copy link
Contributor Author

ok, all set.

@marcioAlmada marcioAlmada changed the title Implementation for assertArrayPart #1371 Implementation for assertSubset #1371 Aug 7, 2014
function assertSubset($subset, $array, $strict = false, $message = '')
{
return call_user_func_array(
'PHPUnit_Framework_Assert::assertArrayPart',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot this one :)

Copy link
Contributor Author

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...

Copy link
Contributor Author

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.

Copy link
Contributor

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 :)

@marcioAlmada marcioAlmada changed the title Implementation for assertSubset #1371 Implementation for assertArraySubset #1371 Aug 10, 2014
whatthejeff added a commit that referenced this pull request Aug 12, 2014
@whatthejeff whatthejeff merged commit 24160a4 into sebastianbergmann:master Aug 12, 2014
@whatthejeff
Copy link
Contributor

Thanks for all your hard work, @marcioAlmada!

@marcioAlmada
Copy link
Contributor Author

And thank you for being an attentious maintainer :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants