There's no two ways about it: terminology in the testing world is incredibly overwhelming. Mocks, stubs, and dummies oh my! Let's see if we can cut through the noise. Come along as, bit by bit, we break all of these confusing concepts down into something you can easily understand and implement within your own projects.
Overview
Syllabus
- Unit Testing
- Intro to PHP Testing Jargon
- Unit Test a Simple Class
- Setup the World
- When to Reach for Data Providers
- A Unit Test is Not Locked to a Single Class
- Homework Solutions
- Green is When You Refactor
- Test Doubles
- A Dummy is a Stand-in for the Real Thing
- Let PHPUnit Create Your Test Doubles
- Stubs Versus Mocks
- The Downside to Mocking
- Feature Testing
- Feature Testing Defined
- When to Reach for Browser Testing
- Related Jargon
- Continuous Integration Testing
Taught by
Jeffrey Way