Talks Archive | PHP UK Conference

Jakub Zalas

Jakub Zalas spoke at our 2024 conference.

Buy TicketsSee 2026 Speakers
Jakub Zalas
Jakub Zalas
Jakub Zalas helps teams to deliver software that survives change. Being focused on quality, Jakub promotes agile development practices like test-driven development. In his spare time, he contributes to open source and plays guitar.
Follow On XAll 2024 speakers

Sessions in 2024

Your tests are mocking you

Queen Charlotte - 11.15

Test doubles (a.k.a. “mocks”) managed to gain a bad reputation over the years for causing unreadable and hard-to-maintain tests. Years of misuse led to some programmers advising against test doubles. Even though they are fundamental in the London school of Test Driven Development.

In this talk, Jakub will go back to the origins of the technique to explain scenarios when it's best used and look at common pitfalls. We’ll discuss various types of test doubles based on examples and show how to make them trustworthy. The key to success, as it turns out, will be a combination of contract (role) and collaboration tests.