LerochkaKapito / extjs-bundle

Use ExtJs with Symfony 2
MIT License
21 stars 18 forks source link

The "Tests/app" directory does not exist. #28

Closed AmsTaFFix closed 10 years ago

AmsTaFFix commented 10 years ago

When i try to run tests in PHPStorm, i have this error, maybe reson is in the way how IDE runs tests.

"C:\Program Files (x86)\PHP\php.exe" C:\Users\sapogov\AppData\Local\Temp\ide-phpunit.php --configuration C:\Users\sapogov\Documents\git-real\amstaffix\extjs-bundle\phpunit.xml.dist C:\Users\sapogov\Documents\git-real\amstaffix\extjs-bundle\Tests\Command\ORM

How you can see IDE uses absolute pathes, maybe we should change phpunix.xml.dist path, because problem is in this lines

$dir = isset($_SERVER['KERNEL_DIR']) ? $_SERVER['KERNEL_DIR'] : static::getPhpUnitXmlDir();

if, phpunit configuration file will be placed in same path, as AppKernel.php, we can solve this problem simply

AmsTaFFix commented 10 years ago

i'm sorry, my mistake. It will be simplier to change working directoy in my IDE configs.