Life-Cycle Methods
TestBox not only provides you with global life-cycle methods but also with localized test methods. This is a great way to keep your tests DRY (Do not repeat yourself)!
beforeTests()
- Executes once before all tests for the entire test bundle CFCafterTests()
- Executes once after all tests complete in the test bundle CFCsetup( currentMethod )
- Executes before every single test case and receives the name of the actual testing methodteardown( currentMethod )
- Executes after every single test case and receives the name of the actual testing method
Examples