How to shut down for the first time in PhpStorm 2016.2

I am using PhpStorm 2016.2 and my code is not working properly. When entering $this->assertCo

Too short list

it only offers function names that are the ancestors of the third level of my class. But when I use Ctrl + Space , it offers the correct elements.

enter image description here

This is the diagram of my class:

enter image description here

and missing sentences are in the PHPUnit_Framework_Assert class.

How can I make it work without using Ctrl + Space every time?

PhpStorm and OpenJDK info:

 PhpStorm 2016.2 Build #PS-162.1121.38, built on July 12, 2016 JRE: 1.8.0_76-release-b216 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains sro 
+5
source share
1 answer

Reason for current behavior: users ( WI-9403 ) to hide static methods when populating methods using this-> .

PHPUnit seems to have all the assertXXX methods made as static , although it recommends accessing them via $this-> (just as it does in JUnit, the original tool in which PHPUnit developers were inspired).

How can I make it work without using Ctrl + Space every time?

At the moment - in no way.

But in 2016.2.1 it will work as before for the PHPUnit / methods inside the PHPUnit test files ( WI-32530 - already implemented).


You can also consider voting for https://youtrack.jetbrains.com/issue/WI-32713 - so that this behavior is completely optional (additional settings) even outside of PHPUnit tests.

+3
source

All Articles