© Christopher Pitt 2021
C. PittPro PHP 8 MVChttps://doi.org/10.1007/978-1-4842-6957-2_9

9. Testing Our Framework

Christopher Pitt1  
(1)
Verbena Close 1, Stellenberg, Durbanville, Cape Town, South Africa
 

In the previous chapter, we built a service locator and dependency injection container, so that we can share parts of our framework without excess boilerplate.

In this chapter, we’re going to learn how to test that new code and how to generally structure our application and tests so that they give us the most benefit for the time we put into them.

Between the Chapters…

I want to quickly touch on some of the changes I made since the last chapter. The dependency injection container is a powerful tool because it cuts down on the repetition of code and makes ...

Get Pro PHP 8 MVC: Model View Controller Architecture-Driven Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.