php - database restore for integration tests with phpunit -



i'm using phpunit , i'd know if there correct form restoring database before running integration tests. @ moment i'm calling sql server script php exec() on testcase setup method, don't know if best choice

class testcase extends phpunit_framework_testcase {     protected function setup() {         exec("the restore command line");     } } 

is there more correct form that?
thank you

this dbunit about. have looked @ it?


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -