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

Ensure signatures for setUp|tearDown|setUpAfterClass|tearDownAfterClass methods in tests are compatible with phpunit 8.2 #32854

Merged

Conversation

luispabon
Copy link
Contributor

Q A
Branch? 4.3
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets #32844
License MIT
Doc PR n/a

Please bear with me as this is my first pr to symfony. Branched off 4.3 as requested here: #32844

Tests currently do not pass due to:

PHP Fatal error:  Declaration of Symfony\Bridge\Monolog\Logger::reset() must be compatible with Monolog\Logger::reset(): void in /home/luis/Projects/symfony/src/Symfony/Bridge/Monolog/Logger.php on line 23

@nicolas-grekas
Copy link
Member

Thanks :)
Can you please do the same for setUpBeforeClass and tearDownAfterClass?

@nicolas-grekas nicolas-grekas added this to the 4.3 milestone Aug 1, 2019
@luispabon
Copy link
Contributor Author

Done.

@luispabon luispabon changed the title Ensure signatures for setUp and tearDown methods in tests are compatible with phpunit 8.2 Ensure signatures for setUp|tearDown|setUpAfterClass|tearDownAfterClass methods in tests are compatible with phpunit 8.2 Aug 1, 2019
…ss methods in tests are compatible with phpunit 8.2
@nicolas-grekas nicolas-grekas force-pushed the 4.3/phpunit82-void-setup-teardown branch from 48deeaf to 97bcb5d Compare August 1, 2019 11:15
@nicolas-grekas
Copy link
Member

Thank you @luispabon.

@nicolas-grekas nicolas-grekas merged commit 97bcb5d into symfony:4.3 Aug 1, 2019
nicolas-grekas added a commit that referenced this pull request Aug 1, 2019
…rDownAfterClass methods in tests are compatible with phpunit 8.2 (luispabon)

This PR was squashed before being merged into the 4.3 branch (closes #32854).

Discussion
----------

Ensure signatures for setUp|tearDown|setUpAfterClass|tearDownAfterClass methods in tests are compatible with phpunit 8.2

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

Please bear with me as this is my first pr to symfony. Branched off 4.3 as requested here: #32844

Tests currently do not pass due to:

```
PHP Fatal error:  Declaration of Symfony\Bridge\Monolog\Logger::reset() must be compatible with Monolog\Logger::reset(): void in /home/luis/Projects/symfony/src/Symfony/Bridge/Monolog/Logger.php on line 23
```

Commits
-------

97bcb5d Ensure signatures for setUp|tearDown|setUpAfterClass|tearDownAfterClass methods in tests are compatible with phpunit 8.2
@luispabon luispabon deleted the 4.3/phpunit82-void-setup-teardown branch August 1, 2019 11:20
@luispabon
Copy link
Contributor Author

👍

@nicolas-grekas nicolas-grekas mentioned this pull request Aug 1, 2019
23 tasks
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

3 participants