7 days of WordPress plugins, themes & templates - for free!* Unlimited asset downloads! Start 7-Day Free Trial
FREELessons: 15Length: 2.4 hours

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

2.6 Setup and Teardown

Running the same code in every test can be tedious and also dangerous. One slight change in that same code involves a lot of work to fix. In this lesson you'll learn how to use setup and teardown methods to write code once and run it multiple times in your test case.