Linux and PHP web application support and development (Bromsgrove, UK)

testing

PHPUnit testing – mock and double objects

When writing unit tests, it’s often desirable to ‘mimick’ a backend call to web service or database (without using the real thing backend). Ideally you need this to be quick and easy to do. One way of doing this is to use mock or double objects. This article discusses their use with PHPUnit (a unit […]

, , ,

Read more...