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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.