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

[PhpUnitBridge] Polyfill new phpunit 9.1 assertions #37567

Merged

Conversation

phpfour
Copy link
Contributor

@phpfour phpfour commented Jul 13, 2020

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #37320
License MIT
Doc PR n/a

This PR adds the following new assertions that was added to PhpUnit 9.1:

  • Implement assertIsNotReadable() as alternative for assertNotIsReadable()
  • Implement assertIsNotWritable() as alternative for assertNotIsWritable()
  • Implement assertDirectoryDoesNotExist() as alternative for assertDirectoryNotExists()
  • Implement assertDirectoryIsNotReadable() as alternative for assertDirectoryNotIsReadable()
  • Implement assertDirectoryIsNotWritable() as alternative for assertDirectoryNotIsWritable()
  • Implement assertFileDoesNotExist() as alternative for assertFileNotExists()
  • Implement assertFileIsNotReadable() as alternative for assertFileNotIsReadable()
  • Implement assertFileIsNotWritable() as alternative for assertFileNotIsWritable()
  • Implement assertMatchesRegularExpression() as alternative for assertRegExp()
  • Implement assertDoesNotMatchRegularExpression() as alternative for assertNotRegExp()

@phpfour phpfour requested a review from nicolas-grekas July 13, 2020 12:18
@fabpot fabpot force-pushed the phpfour-polyfill-new-phpunit-91-assertions branch from 3765154 to 51c0bf0 Compare July 15, 2020 12:47
@fabpot
Copy link
Member

fabpot commented Jul 15, 2020

Thank you @phpfour.

@fabpot fabpot merged commit 488e2c9 into symfony:master Jul 15, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 Aug 27, 2020
fabpot added a commit that referenced this pull request Aug 28, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Polyfill new phpunit 9.1 assertions

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37320
| License       | MIT
| Doc PR        | -

Backport of #37567, follows the discussion on #37960.

Commits
-------

d945b88 [PhpUnitBridge] Polyfill new phpunit 9.1 assertions
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Polyfill new phpunit 9.1 assertions
4 participants