Book Image

CakePHP 2 Application Cookbook

Book Image

CakePHP 2 Application Cookbook

Overview of this book

Table of Contents (20 chapters)
CakePHP 2 Application Cookbook
Credits
Foreword
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Introduction


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.