/** * Sets up the fixture, for example, open a network connection. * This method is called before a test is executed. * * @return void */ public function setUp() { $this->markTestSkipped('Skipped until DOJO is converted to Zend\\Dojo'); \Zend\Layout\Layout::resetMvcInstance(); HelperBroker\HelperBroker::resetHelpers(); HelperBroker\HelperBroker::setPluginLoader(null); $this->request = new \Zend\Controller\Request\HTTP(); $this->response = new \Zend\Controller\Response\Cli(); $this->front = \Zend\Controller\Front::getInstance(); $this->front->resetInstance(); $this->front->setRequest($this->request)->setResponse($this->response); $this->viewRenderer = HelperBroker\HelperBroker::getStaticHelper('viewRenderer'); $this->layout = Layout\Layout::startMvc(); }
/** * @group ZF-4704 */ public function testBrokerShouldAcceptCustomPluginLoaderInstance() { $loader = HelperBroker\HelperBroker::getPluginLoader(); $custom = new \Zend\Loader\PluginLoader\PluginLoader(); HelperBroker\HelperBroker::setPluginLoader($custom); $test = HelperBroker\HelperBroker::getPluginLoader(); $this->assertNotSame($loader, $test); $this->assertSame($custom, $test); }