public function testDispatchRaisesDomainExceptionIfCircular() { $this->setExpectedException('Zend\\Mvc\\Exception\\DomainException', 'Circular forwarding'); $sampleController = $this->controller; $this->controllers->setService('sample', $sampleController); $this->plugin->dispatch('sample', array('action' => 'test-circular')); }