Closed
Description
Running the unit tests with a custom phpunit config file like:
phpunit -c customphpunit.xml
breaks the unit test suite quite badly (sniffs can no longer be tested) with the following backtrace:
PHP_CodeSniffer\Exceptions\RuntimeException: ERROR: unable to get value of property "values"
PHP_CodeSniffer\src\Config.php:183
PHP_CodeSniffer\src\Config.php:638
PHP_CodeSniffer\src\Config.php:414
PHP_CodeSniffer\src\Config.php:324
PHP_CodeSniffer\tests\Standards\AbstractSniffUnitTest.php:134
PHP_CodeSniffer\tests\TestSuite.php:26
Some light debugging shows that the Config::processShortArgument()
method chokes on the -c
.
This used to work fine with PHPCS 2.x