Testing with Doubles: Why, When, and How?

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?

Speaker

Sebastian Bergmann

is the author of PHPUnit and sets the industry standard of quality assurance.