Task #64663
closed
Make use of phpunit after tearDown execution
Added by Anja Leichsenring almost 10 years ago.
Updated almost 9 years ago.
Priority:
Won't have this time
Description
Since a latest release of phpunit it is possible to tag a function as to be executed after frameworks tearDown().
Evaluate and implement:
- rename ext:core\Tests\UnitTestCase::tearDown() to something speaking, tag it as executed after each test.
- find all calls to parent::tearDown() inside the unit test files and remove them
- do not touch Test classes in contrib or Packages/Library directories, because we must not change third party code.
- Status changed from New to In Progress
- Assignee set to Mateusz Wojtuła
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36475
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36475
- Status changed from Under Review to Closed
- Priority changed from Should have to Won't have this time
I am sorry about the bad news, but we found out meanwhile, that the @after annotated function is only executed in the test class it belongs to. So no global implementation is possible at this point.
- Sprint Focus deleted (
On Location Sprint)
Also available in: Atom
PDF