Chapter 9. Test-driven development

9.1 Building quality into the process 190
9.2 Database select 192
9.3 Database insert and update 201
9.4 Real database transactions 205
9.5 Summary 209

I misplaced my cellphone once and could not find it anywhere. This happens to me sometimes, and I know exactly what to do about it: I pick up another phone and call the cellphone. Usually, this makes it easy.

But this particular late night, something spooky happened. Although I could hear it, I simply could not locate it. The sound appeared to be coming from somewhere inside a bookshelf, and although I had no idea why I would have left the phone there, I kept looking, listening, and groping for it.

But to no avail. I could still hear it, and I believed I had ...

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.