Are you sure your test file is extending phpunit?
Can you show the content of the file?
(I have the same setup and it works)
I am using Laravel valet and have setup my PHP Storm as follows:
Kept the default phpunit.xml file apart from updating the db_connection to sqlite and db_database to :memory:
PHPUnit is installed with composer and setup in the PHP Storm languages and frameworks. PHPUnit version is showing as 7.4.3 so assume this means it is installed correctly.
Set the default configuration file to phpunit.xml
Set a PHPStorm/PHPUnit Run/Debug Configuration. Se the test runner scope to "Defined in the configuration file".
I can now run tests from within phpstorm and they run correctly.
However, as far as I understand I should now be able to see all the phpunit assertions $this->assertTrue(); within my tests under code completion. I cannot... Any ideas why?
I read about a bug in PHPStorm 2016 where you have to press the spacebar first to get the static methos showing in code completion, but this does not help.
Update: Turns out deleting the .idea folder, waiting for it to re-index, setting up the testing environment again AND restarting PHP Storm got them back to autocomplete!
Please or to participate in this conversation.