r/programming • • Dec 02 '15

PHP 7 Released

https://github.com/php/php-src/releases/tag/php-7.0.0
887 Upvotes

729 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Dec 02 '15

[deleted]

11

u/AeroNotix Dec 02 '15

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.

13

u/TomBombadildozer Dec 02 '15

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....

-2

u/f1zzz Dec 02 '15

Third party libraries working or not is very much the first party's problem

→ More replies (2)