Test for registration process involving CAPTCHA

I would like to write a functional test that would go through the registration process of my project. The problem is that I am using CCaptcha and have no idea how to bypass it. How do I do that?

:)) Machine vs Machine… You can disable captcha etc. (or try to recognize the image :)

Yea, that’s kind of what I was asking. How do I disable it without touching the code outside of tests/ folder? Is it even possible?

What I mean is that I want the test to automatically and only temporarily disable captcha. Just for the testing process you know.

You need to set "allowEmpty" to captha validator (when it in "special" enviroment etc.), maybe:

, 'allowEmpty' => YII_DEBUG

Oh heavens, how simple was that. Thank you, vamp.