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 - PHPUnit 6 not supported
Summary: PHPUnit 6 not supported
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-02 11:16 UTC by dnt
Modified: 2017-09-29 12:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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*)