How to rollback to previous state after unit testing the app

I am using couchbase PHP SDK with PHP unit testing framework for unit test. My question is how to rollback to previous state after doing testing . Means i wanna put my database from where i started the unit testing so all the junk data should not be there after testing.

There are no transactions and rollback. Undo yourself or take backup and restore.

1 Like