Actions
Task #76479
closedReplace @expectedException with codewise test
Start date:
2016-06-06
Due date:
% Done:
100%
Estimated time:
(Total: 0.00 h)
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
medium
Sprint Focus:
Description
Instead of using the @expectedException Annotation we strive to use the codewise test self::expectException() and especially take care to take the exception code in account. Those need to be unique in the system anyways.
Updated by Mathias Brodala over 8 years ago
- Description updated (diff)
Why not use @expectedExceptionCode
too?
Updated by Anja Leichsenring over 8 years ago
- Tracker changed from Task to Story
- Assignee deleted (
Anja Leichsenring) - Translation missing: en.field_remaining_hours set to 0.0
- Sprint Focus deleted (
On Location Sprint)
replace all annotations @expectedException* with the corresponding codewise test functions. The test for exceptionCode is to be preffered.
Updated by Mathias Brodala over 8 years ago
- Tracker changed from Story to Task
- Assignee set to Anja Leichsenring
- Complexity set to medium
- Sprint Focus set to On Location Sprint
- Translation missing: en.field_remaining_hours deleted (
0.0)
Cite from Slack:
codewise testing functions are faster, easier to read and less error prone
Also see this article from the author of PHPUnit.
Updated by Christian Kuhn over 8 years ago
- Sprint Focus deleted (
On Location Sprint)
Updated by Anja Leichsenring over 8 years ago
- Subject changed from Replace @expectedException with codewise test [parent-ticket] to Replace @expectedException with codewise test
Actions