Monthly Meeting


Details
Schedule:
19:00 - Doors open
19:30 - Talk
20:30 - Raffles, and announcements
20:45 - Social, drinks and food
Talk: Write better tests by ditching your mocking framework
Speaker: Jelrik van Hal
DITCH YOUR MOCKING FRAMEWORK
When writing tests, chances are that you want to test an isolated bit of code. However, real world code is connected to all kinds of dependencies: databases, external APIs, or other unrelated parts of your own code. For years, I've used PHPUnit mocks, Prophecy, Mockery, and other tools to create drop-in replacements for these dependencies.
That time is over. I switched to writing my own mocks, stubs, and spies by hand and I ditched mocking frameworks completely. It brings me automatic refactoring, more tools for quality control, better organised tests and code, and, yes, testable mocks. I'll show you how.

Monthly Meeting