Avoiding Mockageddon

When we do not want to use a real dependency in a (unit) test then we can replace it with a test double. PHPUnit as well as third-party libraries such a Prophecy or Mockery make it convenient to create these stubs, spies, or mocks. Maybe they make it too convenient?

Speaker

Sebastian Bergmann

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