Chapter 10. Advanced testing techniques

10.1 A contact manager with persistence 211
10.2 Sending an email to a contact 219
10.3 A fake mail server 225
10.4 Summary 230

Once, as I was zapping TV channels, I happened upon an unfamiliar soap opera. A man was saying to a woman, “We’re real people; we have real feelings.” If I had been following the program from the start, I would probably have been mildly amused by this. But coming in suddenly, it struck me how extraordinary a statement this was, a fictional character bombastically proclaiming himself real.

Working with software, we’re used to juggling the real and the unreal. In computing, it’s a matter of taste whether you consider anything real or not, other than hardware and moving electrons. ...

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.