Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m

2.5 Setup and Teardown Functions

Duplication of code is one of the easiest ways to create bugs! This is even true of your test code. In XCTest there are two special functions that you can override to help with avoiding code duplication. These functions are setUp and tearDown and you'll learn all about them in this lesson.