hello
is it possible to make unit testing w/o codeception?
i don’t know how to init application for testing in bootstrap. it shows me
[color=“red”]PHP Fatal error: Uncaught exception ‘yii\base\InvalidConfigException’ with message ‘Unable to determine the request URI.’[/color]
<?php
defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',false);
defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER',false);
defined('YII_ENV') || define('YII_ENV', 'test');//dev | prod | test
$base = dirname(dirname(__DIR__));
require $base . '/vendor/autoload.php';
require $base . '/vendor/yiisoft/yii2/Yii.php';
$config = require $base . '/frontend/config/web.php';
(new yii\web\Application($config))->run();