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 258711 - PHPUnit navigation and generation not working
Summary: PHPUnit navigation and generation not working
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-07 18:38 UTC by twifty
Modified: 2016-05-26 10:02 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 twifty 2016-04-07 18:38:18 UTC
When a project contains a sub-project which has it's own composer.json, the PHPUnit "navigate to test file" "create test file" and "run focused test method" do not work.

Here is a sample project https://github.com/twifty/netbeans

Set up the IDE as normal for PHPUnit. Navigate to src/sub-project/index.php, right click and "Go to test class", Or, right click, select "Tools" and the "Create tests" menu item is missing.

A workaround is to rename the composer.json file and restart the IDE.
Comment 1 twifty 2016-04-07 18:40:29 UTC
I should say "when a project contains a sub-folder" rather than "sub-project" as the IDE has not opened the contents of sub-project as it's own project.
Comment 2 Tomas Mysik 2016-04-08 06:54:27 UTC
I believe that this issue will be solved as part of issue #256585. But keeping opened, will verify it once that issue is fixed.

Thanks for reporting.
Comment 3 Tomas Mysik 2016-05-26 10:02:07 UTC
This has been fixed as part of issue #256585.

Thanks.

Product Version: NetBeans IDE Dev (Build 20160526-870cac7ce632)
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14
System: Linux version 4.2.0-36-generic running on amd64; UTF-8; cs_CZ (nb)