title: How to test the upper layers of a ZF application
body: <p>How do you test the controller and views in a Zend Framework application?</p>
  
  <p>I have been using PHPUnit to test the mapper, domain and services, and that's been working fine.  I use dependency injection so that I can isolate the class under test.</p>
  
  <p>When it comes to the controller however I would probably not try to isolate it.  I would effectively be doing integration tests at this point, but I think that's fine.  I would still use PHPUnit and fire off requests for most tests.</p>
  
  <p>For the views, I am thinking of using the CSS selectors in Zend_Test, but since I have a lot of Javascript I will have to use selenium too.</p>
  
  <p>Does this all sound reasonable?  What do you do?</p>