Hostname changed after setting up virtual host in MAMP
Doing this fixed it:

sudo hostname properhostname.local

And I haven't noticed any side-effects yet.  I can still access the virtual host using testhost.local.  Works after a MAMP restart also.