eclipse-pdt / pdt

PHP Development Tools project (PDT)
https://eclipse.org/pdt
Eclipse Public License 2.0
189 stars 46 forks source link

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

Open SantosSi opened 2 months ago

SantosSi commented 2 months ago

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

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.