You make it seem so black and white. Mocking is such a flaky and inconsistent technique that often brings a hoard of problems itself that it's often much simpler to forgo mocking altogether.
That's because it is black and white. Unit tests test units of code. libcurl does not comprise units of PHP code. Insomuch as the tests are concerned, libcurl behaving correctly is not PHP's problem.
Now, for a feature as ubiquitous as curl support, I'd expect to see some functional tests....
0
u/[deleted] Dec 02 '15
[deleted]