Technical requirements
In this chapter, you are expected to have basic knowledge of using Git version control for web applications. You should also use the development environment and solution code from this book’s GitHub repository: https://github.com/PacktPublishing/Test-Driven-Development-with-PHP-8/tree/main/Chapter%209.
Preparing the development environment for this chapter
First, download the code found at https://github.com/PacktPublishing/Test-Driven-Development-with-PHP-8/tree/main/Chapter%209.
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:
docker-compose build && docker-compose up -d docker exec -it docker-server-web-1 /bin/bash
Once inside the container, run the...