简体   繁体   中英

PhpStorm, Yii2 Basic and Codeception

I have configuration:

  • Open Server 5.2.8 (WAMP)
  • PhpStorm 2017.3.4
  • Yii 2.0.14 basic

I added to the %PATH% path to PHP and to the Codeception folder: PHP之路 编码接收之路

In the PhpStorm terminal I launched the codecept run command and everything looks good. But the Windows terminal does not maintain colors therefore I wanted to launch tests through PhpStorm.

PhpStorm终端

I made such settings for PHPUnit and Codeception (from Yii2\\vendor):

PHPUnit设置

Codeceptiont设置

But for some reason I receive such error:

错误

You are missing the dependency for phpunit , add the following to your composer.json

"require-dev": {
    "phpunit/phpunit": "3.7.*"
},

and run

composer update

Answers here and here . Thanks to @panosru. Just download new version PHPStorm 2017.3.6.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM