Source Check the following link: https://jtreminio.com/2013/03/unit-testing-tutorial-introduction-to-phpunit/