Technical requirements
This chapter requires you to have all the containers, configurations, and testing tools we have utilized in Chapter 5, Unit Testing. You can download the source files from this URL and run the containers: https://github.com/PacktPublishing/Test-Driven-Development-with-PHP-8/tree/main/Chapter%205.
Preparing the development environment for the chapter
First, get the base code for Chapter 6, found in https://github.com/PacktPublishing/Test-Driven-Development-with-PHP-8/tree/main/Chapter%206/base/phptdd or simply run the following command:
curl -Lo phptdd.zip "https://github.com/PacktPublishing/Test-Driven-Development-with-PHP-8/raw/main/Chapter%206/base.zip" && unzip -o phptdd.zip && cd base && ./demoSetup.sh
To run the containers and execute the commands in this chapter, you should be inside the docker-server-web-1
container.
Run the following command to confirm the container name for our web server:
docker ps...