You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a XML configuration file to specify which files to run. Normaly I use PHPUnit as a command line tool and it works great. When I tried VisualPHPUnit it fails to load my test files properly. I'm getting a RuntimeException: Cannot open file "logger/logger.php"; where "logger/logger.php" is the first file specified in my XML configuration file. PHPUnit interprets relative paths in a XML configuration as realtive to the position of the configuration file itself. This doesn't appear to be true of VisualPHPUnit. I would like the configuration file to stay the same for both PHPUnit and VisualPHPUnit, is this possible?
Well, after some further investigation I have concluded that this is not the fault of VPU. My XML configuration works if I run phpunit from the same directory with no arguments whatsoever. However if I try to run it somewhere else with the "--configuration" argument pointing to my XML configuration it fails exactly as VPU. I believe this is the same issue as PHPUnit #552.
I'm sorry to have blamed it on you, though I would appreciate any tips on how to resolve this!
Activity
kaigan commentedon Sep 4, 2012
Well, after some further investigation I have concluded that this is not the fault of VPU. My XML configuration works if I run phpunit from the same directory with no arguments whatsoever. However if I try to run it somewhere else with the "--configuration" argument pointing to my XML configuration it fails exactly as VPU. I believe this is the same issue as PHPUnit #552.
I'm sorry to have blamed it on you, though I would appreciate any tips on how to resolve this!