I don’t have control of the Dev server, and may not be able to install or use PHPUnit on it. I installed PHPUnit 3.6 locally on my machine and it requires requires PHP 5.2.7 (or later). But the Dev server is running PHP 5.2.4.
What is the proper way to set up TDD and PHPUnit without running the tests on the dev server? Is it good enough to just run tests locally? Do I need the same versions of PHP and MySQL on the my local machine to do it effectively? (I have MySQL 5.5.16 installed, Dev server is 5.0.xxxx).
Or can I create a some kind of pseudo-unit test to run on the Dev server to make sure that there are no differences?
In general you want the same environments across servers, but yes, it is good enough to run the tests locally. Note that PHP 5.2.x has reached end of life. You should update to a 5.3.x version if possible.