title: Sensing an Action View Helper call in a Zend Controller unit test
body: <p>I'd like to implement widget-ized Zend controllers in a test-driven way. By widget-ized I mean, for instance, a list controller that outputs elements, calling for each of them <code>$this-&gt;action('element', …)</code> view helper in its view script (<code>list.phtml</code>). Thus, the rendering of each element in the list is handled by a dedicated “element” controller, and is configurable, or even can be changed at runtime. See “Action View Helper” section at <a href="http://framework.zend.com/manual/en/zend.view.helpers.html" rel="nofollow noreferrer">http://framework.zend.com/manual/en/zend.view.helpers.html</a></p>
  
  <p>The question is: how do I mock and sense this <code>$this-&gt;action('element', …)</code> call best? Do I have to rewrite all the default ZF request routing and plugin loading logic for the tests, or is there a shortcut?</p>
  
  <p>I'm using PHPUnit, if that matters.</p>