An application can become complex over time, and it can become difficult to introduce changes without affecting other areas of your code base. The concept of unit testing helps reduce this burden by allowing you to define tests that check and confirm the integrity of your application at any time.
In this chapter, we'll look at how CakePHP leverages the PHPUnit library to provide a solid base for unit testing, including handling dependencies, fixtures, and using the bake shell for testing.