PHP: How to begin testing large, existing codebase, and test for regression on production site?
Posted
by anonymous coward
on Stack Overflow
See other posts from Stack Overflow
or by anonymous coward
Published on 2010-04-23T18:10:25Z
Indexed on
2010/04/23
18:13 UTC
Read the original article
Hit count: 156
I'm in charge of at least one large body of existing PHP code, that desperately needs tests, and as well I need some method of checking the production site for errors.
I've been working with PHP for many years, but am unfortunately new to testing. (Sorry!).
While writing tests for code that has predictable outcomes seems easy enough, I'm having trouble wrapping my head around just how I can test the live site, to ensure proper output.
I know that in a test environment, I could set up the database in a known state... but are there proper methods or techniques for testing a live site? Where should I begin?
[I am aware of PHPUnit and SimpleTest, but haven't chosen one over the other yet]
© Stack Overflow or respective owner