Unit Testing Controllers

I know functional test can be done for Controllers, but would like to know whether Yii has the ability to do Unit testing on the Controllers. I really want to write unit tests for my controllers, but I could not find the right way. If anyone has wrote unit testing for controllers, please share your ideas with me.

I did google search on this topic, but could not find a good example for unit testing.

Appreciate your help!

Note: I don’t like the approach to pass values in $_POST as hard coded.