Setting Up the Environment
Explore the process of setting up an automated testing environment for PHP web applications. Understand the benefits of automated tests over manual exploratory testing, and learn to install PHPUnit and Panther using Composer. This lesson teaches you how to configure testing tools, create necessary files, and organize your project for efficient testing and better code reliability.
Automated testing vs. exploratory testing
Testing is a very important part of a developer’s life. So far, we have been making changes in the code and “testing” it by going to the browser. This is called exploratory testing, and you need a person for that.
In this final chapter, we would like to show you a technique that lets the computer do the testing. By doing so, you can save yourself a lot of time clicking around the website.
What is even more useful about automated testing is that you can save the tests and run them whenever you like. When you are programming, a change in one file might cause a problem in another file. Running the tests after every change will expose ...