Whilst working in some other languages, (primarily Java and C++), I have come across useful tools that enable you to compile your program in a certain way that allows you to examine what source code has been called/run whilst the program was running. You then run your regression tests and check that all the code you just added/changed had been exercised.
Does anybody know of a similar tool/programming design in order to do the same thing with PHP web pages and scripts? This would be a great help in preventing bugs slipping through in obscure parts of code that you don't realize never got tested.
Any input appreciated as always