FREELessons: 20Length: 2.8 hours

Next lesson playing in 5 seconds

  • Overview
  • Transcript

2.9 Stubs

Stubs are very often the answer to questions, like: “How can I test my class, when it depends on another class or database connection?” With PHPUnit, It’s not too hard, if you know the appropriate tools. Stubs help us solve this kind of problem.