Testing in Yii
As of version 1.1, Yii is tightly integrated with the PHPUnit (http://www.phpunit.de/) and Selenium Remote Control (http://seleniumhq.org/projects/remote-control/) testing frameworks. There is nothing about TDD that presupposes a particular testing framework (or any testing framework at all, for that matter), but using one is strongly recommended.
You may certainly test Yii PHP code with any of the testing frameworks available. However, the tight integration of Yii with the two frameworks mentioned previously makes things even easier. And making things easy is one of our primary goals here. We will be using the testing features of Yii as we proceed.
When we used the yiic webapp console command to create our new Hello World demo application in Chapter 2, we noticed that many files and folders were automatically created for us. The ones among these relevant to writing and performing automated tests are the following:
|
|
|
|---|---|
|
| Â |
|
|
This contains... |