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] disable global test listener when not registered #21825

Merged
merged 1 commit into from Mar 2, 2017

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Mar 1, 2017

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

The global test listener is always initialized to register the clock
mock and DNS mock as soon as possible. However, when the listener is
registered locally through the PHPUnit config, it will never be
registered as a listener. In thise case, the state of the local
listener must be reset to correctly report expected deprecation test
results.

The global test listener is always initialized to register the clock
mock and DNS mock as soon as possible. However, when the listener is
registered locally through the PHPUnit config, it will never be
registered as a listener. In thise case, the state of the local
listener must be reset to correctly report expected deprecation test
results.
@fabpot
Copy link
Member

fabpot commented Mar 2, 2017

Thank you @xabbuh.

@fabpot fabpot merged commit e068661 into symfony:2.8 Mar 2, 2017
fabpot added a commit that referenced this pull request Mar 2, 2017
…stered (xabbuh)

This PR was merged into the 2.8 branch.

Discussion
----------

[PhpUnitBridge] disable global test listener when not registered

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

The global test listener is always initialized to register the clock
mock and DNS mock as soon as possible. However, when the listener is
registered locally through the PHPUnit config, it will never be
registered as a listener. In thise case, the state of the local
listener must be reset to correctly report expected deprecation test
results.

Commits
-------

e068661 disable global test listener when not registered
@xabbuh xabbuh deleted the test-listener-registration-2.8 branch March 2, 2017 06:27
This was referenced Mar 6, 2017
@alexpott
Copy link
Contributor

Whilst trying to use simple-phpunit in Drupal discovered a related issue with listeners registered via the phpunit.xml(.dist) configuration - see #31649

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

3 participants