Project

General

Profile

Actions

Task #76479

closed

Replace @expectedException with codewise test

Added by Nadir Sunar almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
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.


Subtasks 10 (0 open10 closed)

Task #76474: Replace @expectedException with codewise test in ext:fluidClosedNadir Sunar2016-06-06

Actions
Task #76496: Replace @expectedException with codewise test in ext:rsaauthClosedNadir Sunar2016-06-06

Actions
Task #76497: Replace @expectedException with codewise test in ext:coreClosedJoerg Boesche2016-06-06

Actions
Task #76498: Replace @expectedException with codewise test in ext:frontendClosedNadir Sunar2016-06-06

Actions
Task #76499: Replace @expectedException with codewise test in ext:installClosedNadir Sunar2016-06-06

Actions
Task #76502: Replace @expectedException with codewise test in ext:recordlistClosed2016-06-06

Actions
Task #76503: Replace @expectedException with codewise test in ext:backendClosed2016-06-06

Actions
Task #76504: Replace @expectedException with codewise test in ext:extensionmanagerClosed2016-06-06

Actions
Task #76505: Replace @expectedException with codewise test in ext:extbaseClosedNadir Sunar2016-06-06

Actions
Task #76506: Replace @expectedException with codewise test in ext:schedulerClosedNadir Sunar2016-06-06

Actions
Actions #1

Updated by Mathias Brodala almost 8 years ago

  • Description updated (diff)

Why not use @expectedExceptionCode too?

Actions #2

Updated by Anja Leichsenring almost 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.

Actions #3

Updated by Mathias Brodala almost 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.

Actions #4

Updated by Christian Kuhn almost 8 years ago

  • Sprint Focus deleted (On Location Sprint)
Actions #5

Updated by Anja Leichsenring almost 8 years ago

  • Subject changed from Replace @expectedException with codewise test [parent-ticket] to Replace @expectedException with codewise test
Actions #6

Updated by Wouter Wolters almost 8 years ago

  • Status changed from New to Closed

All done.

Actions

Also available in: Atom PDF