Short backstory: I am a self-taught developer. This can lend to all manner of bad habits and misconceptions, but I am constantly learning and want to improve my skills. Insofar as I want to be a developer, I want to be a good developer. With that in mind...
Unit testing is a mystery to me. I don't know what it is, how to do it, and so on. I would just google for this stuff, but I think this could be a good resource to have on SO. So, what is a good, comprehensive, detailed introduction to unit testing?
Edit: In case it matters, I mostly write Javascript and PHP.