Skip to content

Testing with Doubles: Why, When, and How?

Avatar of Sebastian Bergmann Sebastian Bergmann

So you want to test a unit of code that depends on other units of code. When should you replace the real dependencies with Test Stubs or Mock Objects? When should you let the code under test collaborate with the real depended-on units of code?

Come to this presentation and learn the ins and outs of stubs and mocks. By the end of this presentation, you will understand how PHPUnit's test double functionality works and which parts of it you should stay clear of.

Delivered in English
Room:
Symfony

Friday, June 21, 2024 at 09:10 AM – 09:50 AM

Intermediate talk, some familiarity with the topic required.