Skip to content

Running the unit tests with a phpunit config file breaks the test suite #1447

Closed
@jrfnl

Description

@jrfnl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions