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

[PHPUnit 8.0] Add assertArraySubset deprecation #1025

Closed
TomasVotruba opened this issue Feb 7, 2019 · 0 comments
Closed

[PHPUnit 8.0] Add assertArraySubset deprecation #1025

TomasVotruba opened this issue Feb 7, 2019 · 0 comments
Assignees

Comments

@TomasVotruba
Copy link
Member

TomasVotruba commented Feb 7, 2019

Ref - sebastianbergmann/phpunit#3495

Replacement with precise testing:

-$this->assertArraySubset([
-   'cache_directory' => 'new_value',
-], $checkedArray);
+$this->assertArrayHasKey('cache_directory', $checkedArray);
+$this->assertSame('new_value', $checkedArray['cache_directory']);
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

No branches or pull requests

1 participant