The cURL extension is a thin wrapper around the library. Mocking the precise feature you're testing means you're not testing anything. Mocks exist to replace dependencies which are not part of the tested component's responsibility, but are required by it. In this case the responsibility of the cURL extension is to communicate with the actual cURL library.
Sometimes it's better to have test errors, than to have a cargo cult test suite that runs perfectly and tests nothing.
0
u/[deleted] Dec 02 '15
[deleted]