Technical requirements
In this chapter, you are advised to use the following base code from this code repository: https://github.com/PacktPublishing/Test-Driven-Development-with-PHP-8/tree/main/Chapter%207/base/phptdd. After completing the chapter, the resulting solution code can be found at https://github.com/PacktPublishing/Test-Driven-Development-with-PHP-8/tree/main/Chapter%207/complete for reference.
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%207/base or simply run the following command:
curl -Lo phptdd.zip "https://github.com/PacktPublishing/Test-Driven-Development-with-PHP-8/raw/main/Chapter%207/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...