Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m
Unit testing 1
  • Overview
  • Transcript

3.2 Adding Some Business Logic

In this lesson we will do some refactoring by moving the TipCalculator into a new TipService. After that, we will need to use a stub to allow us to easily test the logic within the TipService without having to worry about providing the appropriate inputs for the TipCalculator.