Technical requirements
In this chapter, the reader needs to use the base code from the repository found at https://github.com/PacktPublishing/Test-Driven-Development-with-PHP-8/tree/main/Chapter%208.
Preparing the development environment for the chapter
First, get the base code for this chapter found at 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%208/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
To run the containers, run the following command from the /docker
directory from the repository in your host machine...