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.
Created attachment 157856 [details] One file is listed twice After configuring unit tests in PHP projects (add test folder to project, then open project properties and add test folder and select PHPUnit -> save project properties) and invoking "Go to file" dialog (alt + shift + o) there are two same test files in the list, for example: I search "ArticlesService" and I have files ArticlesService.php and ArticlesServiceTest.php in my project ... ArticlesServiceTest.php is appeared twice. See printscreen. When I close project (after setting up unit test folder) and open again, bug is no longer there.
Could you please try the dev version of NetBeans [1]? I cannot reproduce this issue in it. Please let us know then, thanks. If the problem still exists, please reopen this issue and attach a sample project. Thanks. [1] http://bits.netbeans.org/download/trunk/nightly/latest/ Product Version: NetBeans IDE Dev (Build 20160602-eb3cfce69024) 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)
It is important to have a class file in tests folder BEFORE you setup unit testing in project properties. I just tried it on dev build: Product Version: NetBeans IDE Dev (Build 201607150002) Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Linux version 4.4.0-22-generic running on amd64; UTF-8; cs_CZ (nb)
Will try to look at it, thanks for the details Z.
PHP project fires FilteringPathResourceImplementation.PROP_INCLUDES event once Test Files are set so I think that the problem could be in GoToFile functionality? Note: To reproduce, Test Files must be underneath Source Files (in other words, Source Files is parent of Test Files). Please evaluate, thanks.