I am responsible for at least one large amount of existing PHP code that is desperate for tests, and I also need some method of checking the site for errors.
I have been working with PHP for many years, but, unfortunately, is new to testing. (Sorry!).
When writing tests for code that has predictable results, it seems quite simple, I am having problems with how I can check the site in real time to ensure the correct output.
I know that in a test environment I could create a database in a known state ... but are there any suitable methods or methods for testing a live site? Where to begin?
[I know PHPUnit and SimpleTest, but have not yet selected one of them]
source share