The document discusses the importance of unit testing and describes how developers are returning to write good tests after cutting corners during economic difficulties. It provides examples of unit tests being written for an order management system using PHPUnit to test the createOrder method by mocking dependencies and asserting the return value.
2. A long time ago,
in a code base not so far away…
3. For years people have been advocating the
usage of unit tests and slowly developers
around the world have adopted the skills to write
good tests. But since the crisis businesses have
been battling for customers and profits, leaving
less room for proper QA and testing. In this race
for money, things are looking dim and
unfavourable for businesses that have cut
corners and went straight for the gold.
4. Fortunately it’s not to late for development teams
to turn the tide and reclaim their honour and
ensure businesses aren’t disposing money out of
the window because of easily preventable
failures. The gloves are on and developers take
action to test what’s most important: the core of
the applications!
38. Michelangelo van Dam
dragonbe@gmail
T DragonBe
F DragonBe
www.dragonbe.com
Intergalactic PHP Ninja Consultant
https://www.flickr.com/photos/130160246@N02/16465367556