Complete Guide to automated tests for PHP applications – PHPUnit

In the first part, I’ve tried to convince you to start with automated tests, in this part we’ll finally start with the fun part of actually writing code, but before that let’s first look at some basic concept (then actually getting started, for real. 😄) Test doubles Sometimes it is just plain hard to test the system under test (SUT) because it depends on … Read More


Complete Guide to automated tests for PHP – Introduction

At some point in your career you’ve been told to start writing automated tests and you didn’t really understand why? After all, var_dump was your best friend to check variables and you’re really good (or so you think) at testing everything manually. Also, these tests are more code you have to write, to maintain and to justify to your Manager. Besides, automated tests seems so complicated. All of … Read More