Real use is the best test suite there is. With $padRecord = TRUE in
_config/config.php, every GET request the application answers with a 200 is kept
with its answer; develop/?replay later asks every one of those pages again, against
the code as it stands, and names each page whose answer changed and the first line where it
parts from the recording.
DATA/replay/<name>/, one file per
URL; ?page&padRecord=name records one request of this machine's own.A replay must never write. While one runs, db() refuses every statement that
would change the database - it answers 0, as if no row changed - and padFilePut
refuses what the application's own code asks to write:
|
PHP fragments/replay_1.php |
HTML fragments/replay_1.pad |
Result | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
|