I'm using Visual Studio Code to develop in PHP, and I've been having some trouble getting Code to provide the proper intellisense results. For example, this newly created Codeception unit test:
<?php
class MyTest extends \Codeception\Test\Unit
{
/**
* @var \UnitTester
*/
protected $tester;
protected function _before()
{
}
protected function _after()
{
}
// tests
public function testSomeFeature()
{
$this->assertFalse(false);
}
}
When I type $this->
I expect to see assertFalse
, assertTrue
, and all the other methods provided by \Codeception\Test\Unit
. But what I get is basically whatever items exist within the current file and that's it.
What can I do to get all the methods from the Unit
class to show up? I already have the PHP IntelliSense extension installed, v2.3.4.