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 ...

Get Pro PHP MVC now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.