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

Add toBeIn expectation #363

Merged
merged 3 commits into from
Jul 27, 2021
Merged

Add toBeIn expectation #363

merged 3 commits into from
Jul 27, 2021

Conversation

freekmurze
Copy link
Collaborator

Q A
Bug fix? no
New feature? yes

This PR adds a new toBeIn expectation.

expect('a')->toBeIn(['a', 'b', 'c',]); // passes
expect('d')->toBeIn(['a', 'b', 'd',]); // doest not pass

@jordanbrauer
Copy link
Contributor

This is nice. It's basically an alias of toContain, right? That's what I've been using to check array contents.

@nunomaduro nunomaduro merged commit b2c298b into pestphp:master Jul 27, 2021
@freekmurze freekmurze deleted the add-to-be-in branch July 27, 2021 23:47
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.

3 participants