+ $basePath = BasePath::create(dirname(__DIR__) . '/../');
+ $mode = new App\Mode($basePath);
+ $router = new App\Router();
+ $configLoader = new ConfigFileLoader($basePath, $mode);
+ $configCache = Factory\ConfigFactory::createCache($configLoader);
+ $profiler = Factory\ProfilerFactory::create($configCache);
+ Factory\DBFactory::init($basePath, $configCache, $profiler, $_SERVER);
+ $config = Factory\ConfigFactory::createConfig($configCache);
+ Factory\ConfigFactory::createPConfig($configCache);
+ $logger = Factory\LoggerFactory::create('test', $config, $profiler);
+ $this->app = new App($config, $mode, $router, $logger, $profiler, false);