public function testConstructorUsesExistingPluginWhenPresent() { $plugin = new \Zend\Controller\Plugin\ActionStack(); $this->front->registerPlugin($plugin); $helper = new Helper\ActionStack(); $this->assertTrue($this->front->hasPlugin('Zend\\Controller\\Plugin\\ActionStack')); $registered = $this->front->getPlugin('Zend\\Controller\\Plugin\\ActionStack'); $this->assertSame($plugin, $registered); }