by Chris Pitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

CHAPTER 29

Images

Zend Framework: Testing

We end our time with Zend Framework by looking at how to run unit tests in our application, using PHPUnit.

Goals

  • We need to learn how to install PEAR and PHPUnit.
  • We need to learn how to create and run tests on our controllers.

Installing PEAR

PEAR is the official distribution platform for reusable PHP libraries. You can think of it like Homebrew except instead of distributing packages that work with OS X, it distributes libraries tailored for use with PHP. You can install PEAR in just a few steps, which we will detail next.

Windows

  • After you have downloaded and installed PHP, you must manually execute ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required