At work, I am working with this old legacy code modified Cake-PHP code that works with MSSQL and MySQL. It is used as a web server. We also have a automated task that runs to collect data.
Upgrading Cake-PHP will help, but we can't do that because one of the developers modified the internals of Cake-PHP. T-T
Recently I found SimpleTest, which is great. Very low dependency, easy to install, etc. However:
Thanks in advance
A down-to-earth answer would be to mock your database again and do not change it if not absolutely needed. When you do so, you should run your test and verify they don't fail.
Also as time goes by, try to isolate the layer that gets the raw data and your utility functions, so you can test the latter with known-and-manually-provided data.