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
When running unit tests from within PhpStorm, i've run into an issue wherer the current working directory is controlled by PhpStorm (it switches to where the test is located).
…iguration file (biozshock)
This PR was merged into the 4.3 branch.
Discussion
----------
[PhpUnitBridge] Properly handle phpunit arguments for configuration file
| Q | A
| ------------- | ---
| Branch? | 4.3
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| License | MIT
PhpUnitBridge should properly parse cli arguments for configuration file.
After fixing #34300 the PhpUnitBridge stopped recognizing short `-c` option.
Also original PHPUnit allows to pass a directory as configuration parameter and read from either phpunit.xml or phpunit.xml.dist
Commits
-------
a7a5885 Properly handle phpunit arguments for configuration file
When running unit tests from within PhpStorm, i've run into an issue wherer the current working directory is controlled by PhpStorm (it switches to where the test is located).
This effectively breaks
symfony/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php
Lines 25 to 28 in 0cd837b
meaning my custom
SYMFONY_PHPUNIT_VERSION
is not detected.PhpStorm invokes phpunit with the
--configuration
directiveWould be super cool if we detect
--configurtation
in the simple-phpunit wrapper to make it smooth :)The text was updated successfully, but these errors were encountered: