I have been trying (quite a while, using the chat guys in PHP) to successfully integrate PHPUnit with PhpStorm.
I installed the phpunit.xml file as follows:
<?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals = "false" backupStaticAttributes = "false" colors = "true" convertErrorsToExceptions = "true" convertNoticesToExceptions = "true" convertWarningsToExceptions = "true" processIsolation = "false" stopOnFailure = "false" syntaxCheck = "false" bootstrap = "bootstrap.php" > <testsuites> <testsuite name="Lamed Test Suite"> <directory>Custom/*</directory> </testsuite> </testsuites> </phpunit>
And successfully configured PHP storm to read from this file.
The problem is that when I run the tests, I get the following error in the PhpStorm console:
D:\Websites\php\php.exe C:\fakepath\ide-phpunit.php --bootstrap D:\Websites\htdocs\lamed\tests\boostrap.php --configuration D:\Websites\htdocs\lamed\tests\phpunit.xml Testing started at 23:51 ... Fatal error: Uncaught exception 'PHPUnit_Framework_Exception' with message 'Neither "Lamed Test Suite.php" nor "Lamed Test Suite.php" could be opened.' in D:\Websites\php\pear\PHPUnit\Util\Skeleton\Test.php:100 Stack trace: #0 D:\Websites\php\pear\PHPUnit\TextUI\Command.php(157): PHPUnit_Util_Skeleton_Test->__construct('Lamed Test Suit...', '') #1 C:\Users\Dor\AppData\Local\Temp\ide-phpunit.php(95): PHPUnit_TextUI_Command->run(Array, true) #2 C:\Users\Dor\AppData\Local\Temp\ide-phpunit.php(434): IDE_PHPUnit_TextUI_Command::main() #3 {main} thrown in D:\Websites\php\pear\PHPUnit\Util\Skeleton\Test.php on line 100 Process finished with exit code 255
Obviously, this can be seen from the name= attribute of the testsuite element. The question is why?
UPDATES
- I am running Windows Seven x64 SP1 and PHPStorm 4.0.3 . PHPUnit version 3.6.12 .
- Entering
phpunit -c "D:\Websites\htdocs\lamed\tests\phpunit.xml" in the CLI actually gives the same results. - My
Custom directory is in the same folder as the phpunit.xml file.
I am puzzled. Thank any help.
phpstorm phpunit integration
Madara Uchiha Aug 07 2018-12-12T00: 00Z
source share