Integration Test¶
Integration tests are tests that verify how multiple components or packages work together, as opposed to unit tests, where test are dedicated to one component.
The most important with integration testing is to test realistic scenarios: actual HTTP requests, real database writes, real service interactions, so as to cover the bugs that only appear when everything is wired together.
Integration testing relies on mock objects, to simulate external, autonomous or hard to generate situations.
See also PHP Test Driven Development Part 5: Integration Testing.
Related : Test, End To End Test, Unit Test