I am writing a simple test case. I installed codeception using composer. My test cases are located in root folder inside test case folder
when i try to run the following code
namespace app\tests\testcases;
use yii\codeception\TestCase;
class SomeMyTest extends TestCase
{
public function testOne()
{
echo "here";
}
}
when i try to run the code in a browser i get the following error
Fatal error: Class 'yii\codeception\TestCase' not found
There is this file called as yiisoft\\yii2-codeception\\TestCase.php in my project
What am i doing wrong? Can anyone help.?
https://github.com/yiisoft/yii2-codeception
composer require yiisoft/yii2-codeception --dev
Install codeception using this commands
composer require codeception/codeception
composer require codeception/specify
composer require codeception/verify
More at https://www.yiiframework.com/doc/guide/2.0/en/test-environment-setup
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.