PUBLIC MARKS with tag "unit test"

2018

2016

If you’ve been around PHP for more than a little while, you’ve no doubt started to test your code. And if you ask anyone in the PHP space what to use for writing unit tests, likely the first answer that they’ll give you is PHPUnit.
It’s the de facto standard in the PHP community, and with good reason. But it’s not the only choice. Whilst it does command the lion’s share, other choices abound, one of which I’m going to take you through in this tutorial; it’s called atoum.

2012

2011

In this article, Martin Fowler explains how mock objects work, how they encourage testing based on behavior verification, and how the community around them uses them to develop a different style of testing