/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { $service = new ResultTypeService(); $services = new \Fwk\Di\Container(); $services->set('requestMatcher', new ClassDefinition('Fwk\\Core\\Components\\RequestMatcher\\RequestMatcher'), true); $services->set('viewHelper', new \Fwk\Core\Components\ViewHelper\ViewHelperService(), true); $services->set('resultTypeService', $service, true); $services->set('helloActionService', function () { return 'hello'; }); $desc = new \Fwk\Core\Components\Descriptor\Descriptor(TEST_RESOURCES_DIR . DIRECTORY_SEPARATOR . 'Descriptor' . DIRECTORY_SEPARATOR . 'app_test.xml'); $desc->iniProperties(TEST_RESOURCES_DIR . DIRECTORY_SEPARATOR . 'Descriptor' . DIRECTORY_SEPARATOR . 'config-one.ini'); $this->app = $desc->execute('testApp', $services); }