I have a single php file contaning multiple classes each with their own respective test methods. In my phpunit.xml config, I have defined the following section:
When running phpunit from the command line, it detects each of the classes and executes their test methods. I have configured PHPStorm to use the same phpunit.xml config file however when I right click on the root directory of the project and click Run specs it reports that no tests have been run.
Does PHPStorm use the directory element of phpunit.xml config to identify directories containing tests?
Please show your Run/Debug Configuration for this (Run | Edit Configurations...) and what do you see in console when tests get executed by PhpStorm.
Generally speaking it's not a great idea to have multiple test cases in single file -- having one case per file helps avoiding many problems...