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] Add polyfill for expectException* methods #32869

Merged

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Aug 1, 2019

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #32844
License MIT
Doc PR NA

this PR provides a polyfill for methods setException, setExceptionMessage, setExceptionMessageRegExp and setExceptionCode

@Tobion
Copy link
Member

Tobion commented Aug 1, 2019

Why is the PR for master?

@nicolas-grekas nicolas-grekas changed the title [PhpUnitBridge] Add a polyfill for setException* methods [PhpUnitBridge] Add a polyfill for expectException* methods Aug 1, 2019
@nicolas-grekas nicolas-grekas changed the title [PhpUnitBridge] Add a polyfill for expectException* methods [PhpUnitBridge] Add polyfill for expectException* methods Aug 1, 2019
@nicolas-grekas
Copy link
Member

Why is the PR for master?

The reason is that the master version of the bridge is used to test all branches, so merging here first will unlock testing the PR on 3.4 (and we will merge this patch also on 3.4 then)

@jderusse jderusse force-pushed the polyfill-phpunit-setexception branch from dc7a2d7 to d8c384b Compare August 1, 2019 18:55
}

Copy link
Member

Choose a reason for hiding this comment

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

this extra line is too much

@nicolas-grekas
Copy link
Member

Thank you @jderusse.

@nicolas-grekas nicolas-grekas merged commit c7a8ce5 into symfony:master Aug 1, 2019
nicolas-grekas added a commit that referenced this pull request Aug 1, 2019
…s (jderusse)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[PhpUnitBridge] Add polyfill for expectException* methods

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32844
| License       | MIT
| Doc PR        | NA

this PR provides a polyfill for methods `setException`, `setExceptionMessage`, `setExceptionMessageRegExp` and `setExceptionCode`

Commits
-------

c7a8ce5 [Bridge/PhpUnit] Add polyfill for expectException*
nicolas-grekas added a commit that referenced this pull request Aug 1, 2019
…usse)

This PR was merged into the 3.4 branch.

Discussion
----------

Replace calls to setExpectedException by Pollyfill

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | need #32869 to be merged
| Fixed tickets | #32844
| License       | MIT
| Doc PR        | NA

PhpUnit method `setExceptionException` has been deprecated seens 5.7. This PR replace theme by `exceptException` provide by the pollyfill.

Commits
-------

41c02d7 Replace calls to setExpectedException by Pollyfill
@jderusse jderusse deleted the polyfill-phpunit-setexception branch August 2, 2019 12:18
nicolas-grekas added a commit that referenced this pull request Aug 3, 2019
…tring*() (Tobias Weichart)

This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] added polyfill for assertStringContainsString*()

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #32844
| License       | MIT
| Doc PR        | -

this PR provides a polyfill for methods assertStringContainsString and assertStringContainsStringIgnoringCase in preparation for the PHPUnit 9 deprecations.
PR follows the pattern of [this PR](#32869), hence the PR to master

Commits
-------

1602441 [PhpUnitBridge] added polyfill for assertStringContainsString*()
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.

None yet

5 participants