I know there are a few tutorials floating around the web, but I'm still a little confused. I already have PHPUnit installed and working. Now I'm trying to write a simple controller test using Zend_Test.
Assuming my application is exactly the same as the http://framework.zend.com/docs/quickstart tutorial, and going through http://framework.zend.com/manual/en/zend.test.phpunit.html ... can you please explain how I autoload Zend_Test_PHPUnit_ControllerTestCase? The documentation assumes that "autoloading is setup so we do not need to worry about requiring the appropriate classes (such as the correct controller, plugin, etc)." But that is the part I am confused about. In the quickstart tutorial, we put Zend_Loader::registerAutoload(); in our index.php file, but our tests don't run through index.php. So does that mean in my tests, I will need to put all the include path, autoload information in the test, like I did in index.php? What should I do? What would be the best scenario for requiring/including the necessary files that my test class will extend? Thanks! Andrew
