title: Phpstorm and Yii2 advanced template
body: <p>I am using <b>PhpStorm</b> with <b>Yii2 advanced template</b>. 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:</p>
  
  <hr>
  
  <ol>
  <li>I have installed <b>codeception</b> globally with composer then have build and run all tests included in advanced template with codeception. everything is OK. But when I want to write new (frontend, backend , ...) test in PhpStorm, there is no auto-complete for using codeception. Also when you open some existing default tests in PhpStorm such as <code>SignupCest.php</code> file, namespaces are undefined and PhpStorm cannot find referenced method in subject classes!</li>
  </ol>
  
  <p>Any suggestion or solution?</p>
  
  <h3>updated</h3>
  
  <ol start="2">
  <li>Could anyone help with a complete tutorial on how to debug a yii2 project with Xdebug, PhpStorm and Chrome/Firefox? Although there are some tutorial on debugging pure Php projects/scripts but didn't find any on yii2. </li>
  </ol>