-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Deprecate annotation(s) for expecting exceptions #3332
Comments
Note for interested folks: |
@sebastianbergmann , would it make sense to deprecate those annotations at 7.5 and drop at 8.0 ? |
While I initially wanted to do that, I do not think that the two months between December and February are enough for a deprecation period. |
I believe it's fine - one thing is that it's not that short - but other, not everyone will migrate to new MAJOR at beginning of February. looking at packagist stats ( https://repo-stats.github.io ), fragmentation is big for that, I believe it's worth to do it now instead of setting up a deprecation that would live for more than year. |
* Asserts: add expectThrowable() With this method you can not only test Exceptions, like with expectException, but also Errors. Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts tests: set up test class in setUp() Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: mention expectThrowable in the documentation Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: add type hint Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: since we marked expectedException as deprecated, use expectThrowable instead Signed-off-by: Bernd Stellwag <burned@zerties.org> * fix typos Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: try to make expectThrowable compatible with PHP 5.6 again Signed-off-by: Bernd Stellwag <burned@zerties.org> * don't use @ExpectedException annotation as it will get deprecated see sebastianbergmann/phpunit#3332
* Asserts: add expectThrowable() With this method you can not only test Exceptions, like with expectException, but also Errors. Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts tests: set up test class in setUp() Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: mention expectThrowable in the documentation Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: add type hint Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: since we marked expectedException as deprecated, use expectThrowable instead Signed-off-by: Bernd Stellwag <burned@zerties.org> * fix typos Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: try to make expectThrowable compatible with PHP 5.6 again Signed-off-by: Bernd Stellwag <burned@zerties.org> * don't use @ExpectedException annotation as it will get deprecated see sebastianbergmann/phpunit#3332
* Asserts: add expectThrowable() With this method you can not only test Exceptions, like with expectException, but also Errors. Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts tests: set up test class in setUp() Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: mention expectThrowable in the documentation Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: add type hint Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: since we marked expectedException as deprecated, use expectThrowable instead Signed-off-by: Bernd Stellwag <burned@zerties.org> * fix typos Signed-off-by: Bernd Stellwag <burned@zerties.org> * Asserts: try to make expectThrowable compatible with PHP 5.6 again Signed-off-by: Bernd Stellwag <burned@zerties.org> * don't use @ExpectedException annotation as it will get deprecated see sebastianbergmann/phpunit#3332
The annotations expectedException and expectedExceptionMessage has been replace with the corresponding expecting exceptions, ref: sebastianbergmann/phpunit#3332 Also a call to TestCase::assertInternalType has been replaced with TestCase::assertIsInt.
The annotations expectedException and expectedExceptionMessage has been replace with the corresponding expecting exceptions, ref: sebastianbergmann/phpunit#3332 Also a call to TestCase::assertInternalType has been replaced with TestCase::assertIsInt.
The annotations expectedException and expectedExceptionMessage has been replace with the corresponding expecting exceptions, ref: sebastianbergmann/phpunit#3332 Also a call to TestCase::assertInternalType has been replaced with TestCase::assertIsInt.
The annotations expectedException and expectedExceptionMessage has been replace with the corresponding expecting exceptions, ref: sebastianbergmann/phpunit#3332 Also a call to TestCase::assertInternalType has been replaced with TestCase::assertIsInt.
No description provided.
The text was updated successfully, but these errors were encountered: