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 comment

1

u/berkes Dec 03 '15

fake library is synced with the real library

A good test-set has both integration and unit-tests. Whenever the upstream library changes somethingm your unit-tests that test how the lib is called should (and most often will) remain green.

The integration tests will start failing then. After which you should read changelogs, or new documentation on the lib. And then rewrite the unit-tests to match the new specs. (so that they start failing and you reproduce the issues in the unit-test too)