This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269967

Summary: PHPUnit 6 not supported
Product: php Reporter: dnt
Component: PHPUnitAssignee: issues@php <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description dnt 2017-03-02 11:16:45 UTC
The option --log-json has been removed in PHPUnit 6. Since Netbeans uses this option it's not possible to use PHPUnit 6.
Comment 1 Cruiser 2017-05-20 09:32:27 UTC
And under the "Frameworks & Tools" -> PHPUnit, it requires the Skeleton Generator Script, but this is abandoned too.

https://packagist.org/packages/phpunit/phpunit-skeleton-generator

Please but more resources into keeping netbeans up to date.
Comment 2 hfabiiano 2017-07-11 03:21:02 UTC
I also encountered this same problem.

I checked this incompatibility and maybe the problem belongs to class NetBeansSuite.php

NetBeansSuite class extends PHPUnit_Framework_TestSuite

Now, phpunit 6.2 has namespaces, like this:

NetBeansSuite class extends PHPUnit \ Framework \ TestSuite

Source: https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-for-PHPUnit-6.0.0

I still have the impression that the NetBeansSuite.php class does not run when running the test.
Comment 3 timurgen 2017-09-29 12:47:10 UTC
It would be useful to have possibility to change arguments for phpunit command, so we would self remove/add needed arguments (such as --log-json argument that have been removed from phpunit 6*)