I am using PhpStorm with Yii2 advanced template. I have seen all Yii2 documents. Everything's fine. There's some questions about integrating Yii2 and PhpStorm (both are my favorites) that googling caused no good solution. Maybe many developers has same questions so that I want to ask here:
SignupCest.php
file, namespaces are undefined and PhpStorm cannot find referenced method in subject classes!Any suggestion or solution?
In Settings
in Language & Frameworks
in PHP
set Include path
to codeception. Like this
For those Who want to know:
After that you included the codeception framework's path to your project you have to change PHPDoc Blocks for correct addressing of @param.
For example acceptance test
namespaces in SignupCest.php file:
From:
@param \codeception_frontend\AcceptanceTester $I
To:
@param AcceptanceTester $I