Testing your models core

What is the best way to test the functionality of your models (find, relations, etc) away from web? I want to be able to test my modules without having to start the whole webapp in a browser. Sort of like yii shell, where you can write php code (model->find(…), etc.).

You’ve seen the section on testing in the guide?

http://www.yiiframework.com/doc/guide/test.overview