Skip to content

Undefined index: quiet in CLI.php during unit test run with -v command line arg #1066

@nkovacs

Description

@nkovacs

If you run phpunit with the -v argument, you'll get this error:

Undefined index: quiet squizlabs/php_codesniffer/CodeSniffer/CLI.php:488 squizlabs/php_codesniffer/CodeSniffer/CLI.php:458 squizlabs/php_codesniffer/CodeSniffer/CLI.php:396 squizlabs/php_codesniffer/CodeSniffer.php:722 squizlabs/php_codesniffer/CodeSniffer.php:562 squizlabs/php_codesniffer/tests/Core/ErrorSuppressionTest.php:238 phpunit/phpunit/src/Framework/TestResult.php:601 squizlabs/php_codesniffer/tests/TestSuite.php:48 phpunit/phpunit/src/TextUI/TestRunner.php:428 

This doesn't happen if you run phpunit with --verbose. It looks like CLI.php is incorrectly interpreting phpunit's arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions