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

Next lesson playing in 5 seconds

Cancel
  • Overview
  • Transcript

2.1 Dependency Injection

By passing in dependencies to functions, you can control the context of your tests. This lesson is a very basic introduction to this concept and how it applies to unit testing.