/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { $this->object = new Action(); $this->object->setEvent(Registry::get('Application')->getMvcEvent()); $this->object->setServiceLocator(Registry::get('Application')->getServiceManager()); }