Chapter 12. Taking control with web tests

12.1 Revisiting the contact manager 270
12.2 Getting a working form 277
12.3 Quality assurance 283
12.4 The horror of legacy code 288
12.5 Summary 292

Programming is an intellectual Jackass stunt. We take risks, underestimating the difficulty of a programming task, and often the consequences are unexpected and catastrophic failure. When we implement some code, the possibility that it might fail seems so remote that we don’t even consider it. But in the real world, it’s subject to Murphy’s Law and fails anyway.

But although we know that from repeated experience, we still do it. We keep setting ourselves on fire no matter how many times we get burned.

Admittedly, this is a somewhat sensationalized account. ...

Get PHP in Action 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.