O'Reilly logo

Pro PHP MVC 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

CHAPTER 21

images

Testing

With our sample application progressing nicely along, we once again need to turn our attention back to the topic of testing. What you are likely to find is that testing abstract code is much easier than testing application logic. What’s more, the tests we need to perform require a level of interaction that’s difficult to simulate through code.

Goals

  • We need to test the format of various input forms.
  • We need to test the results of various user interactions with these forms.

One of the many ways in which we can test the validity of forms is by checking for certain elements within the returned body of HTML. To do this, we ...

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