I\'m trying (for quite a while, with help from fellas at the PHP chat room) to succesfully integrate PHPUnit with PhpStorm.
I\'ve set up the phpunit.xml
What you experience is a fallback. It looks like your testsuite is empty (and there is not other additional non-empty testsuite as well).
In that case PHPUnit will to also try to just open something fitting, which does not work. Then you see an error.
If you have only one empty testsuite, you will see the exception with the name of the testsuite and php added for the try of it.
Uncaught exception 'PHPUnit_Framework_Exception' with message 'Neither "Empty-Testuite.php" nor "Empty-Testuite.php" could be opened.'
If you have more than one empty testsuite and no working testsuite, you will see and error about the php only, no name added.
Uncaught exception 'PHPUnit_Framework_Exception' with message 'Neither ".php" nor ".php" could be opened.'
If you have at least a working testsuite but one or more empty testsuites, you will see a short report for each empty testsuite but no error:
Empty test suite.
When I write that this is a fallback it must not mean that this behaviour is intended by PHPUnit. Seeing the error in your case is okay because before you start with tests, you need at least have one running. And before you start with configuring testsuites, the same.
Fix the underlying problem that the test is missing and the error goes away.
The wildcard *
as mentioned in the other answer - even I'm sure it's correct to not have it - plays no role with your problem as far as I could see.
The information in this answer is based on
- PHPUnit 3.6.7 by Sebastian Bergmann.
- PHP 5.4.5 by php.net