DrupalCon Nashville 2018: Principles of Unit Testing

56:41 · 09 Apr 2018 – 13 Apr 2018 · YouTube

About this talk

This talk explores the fundamental concepts of unit testing and the various types of test doubles, including dummy, fake, stub, spy, and mock, with practical code examples using PHPUnit and Prophecy. The speaker discusses the distinction between sociable and solitary tests, as introduced by Jeffrey Fields, to help clarify testing strategies. Additionally, the session addresses the common issue of test smells and offers strategies for managing them, such as the Arrange-Act-Assert pattern, object mothers, and data builders. Attendees will gain a comprehensive understanding of unit testing techniques and when to apply different approaches effectively.

From event

DrupalCon Nashville - April 2018

09 Apr 2018 – 13 Apr 2018

All event videos
Back to Watch