Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit 10 and 11 invoked causing error 'Unknown option "--printer"' #284

Open
SantosSi opened this issue Aug 3, 2024 · 0 comments
Open
Labels

Comments

@SantosSi
Copy link

SantosSi commented Aug 3, 2024

Describe the bug
phpunit runs the tests fine with version 9, but when switching to higher versions, the following error messages are issued:

PHPUnit 10.5.29 by Sebastian Bergmann and contributors.

Unknown option "--printer"

and

PHPUnit 11.3.0 by Sebastian Bergmann and contributors.

Unknown option "--printer"

Read somewhere, unchecking Allocate console could help, but it did not.

phpunit 10 and 11 phars and from vendor/composer/bin/phpunit run the tests w/o issues when run from the command line.

Describe the eclipse environment
Eclipse

Version: 2024-06 (4.32.0)
Build id: 20240606-1231

Describe your system

  • OS: Debian Linux
  • Version testing (trixie)

PHP 8.2.21 (cli) (built: Jul 25 2024 10:12:09) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.21, Copyright (c) Zend Technologies
with Zend OPcache v8.2.21, Copyright (c), by Zend Technologies
with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans

PHPunit configuration tested with phpunit phar 9.6.15, 10.5.29 and 11.3.0 and also the same from Composer.

To Reproduce
Steps to reproduce the behavior:

  1. Configure an output file in the run config.
  2. Run the tests with phpunit 9.
  3. Progress counter runs, test results are shown in the phpunit view.
  4. Switch to phpunit 10 or 11, either by reconfiguring composer or by selecting the phar in the phpunit.
  5. The progress counter stays at 0 and the phpunit test results are displayed in the phpunit view.
  6. The output file contains: Unknown option "--printer"
  7. Switch back to phpunit 9.
  8. Progress counter runs, test results are shown in the phpunit view.

Expected behavior
Tests are run on phpunit 10 and 11, no use of the removed option --printer.

@SantosSi SantosSi added the bug label Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant