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.
Create a class in sources and generate a test for the class. When you will try to rename the class, the refactoring doesn't offer renaming the occurrences in the test files.
Reproducible in 7.1dev.
Because class path of tests is not searched through when refactoring in source class path is used...it has to be fixed together with PHP project I think.
Yes, the reason is: 2 separate class paths, one for sources, the other for tests. If there was just one class path, the code completion is Source Files would show also elements from Test Files. Will have a look at it.
Reproducible in 7.1. This is a nasty, hateful bug. Refactored lots of code assuming the test folder files were included. Depressing to have to revert changes back and lose work. Is there any chance this can be fixed for 7.2?
No way to fix it in 7.2. Too much work has to be done.
Pity. Is there any workaround. I can't seem to remove the test folder and just include it as source?
don't mind that comment sorry. I got it.
Please, don't increase priorities which can't be increased. This is common issue of P3...P1 issues are for IDE crash and such. Thanks in advance.
Sorry. This is an awful bug. One of the reasons I choose netbeans over eclipse is the unit testing features. (there are some other things I prefer too, netbeans is much lighter than eclipse) Probably my fav. feature though, is a seemingly trivial one: <Ctrl+Shift+T> for quickly switching back and forth between test and class-under-test. You can also run individual tests <Ctrl+F6> **Without** having to navigate to the test file. Fantastic! Because of this bug all that goes to shit. It breaks refactoring! So you have a choice: a) select a dummy test folder for tests, in which case refactoring will work, but all the unit test features go out the window or b) keep the unit test features, in which case refactoring will not be applied to your test sources. There is another issue though, which, due to recent requirements, regardless of this bug being fixed, renders the unit test features rather useless to me (at least for the while): [Support for Multiple Test Sources](http://netbeans.org/bugzilla/show_bug.cgi?id=206258). | +---mod1 | |-src | +-tests | +---mod2 | |-src | +-tests | +---mod.. | +---tests |-phpunit.xmx +-bootstrap.php Alas, I tell you this because I'm thining of giving eclipse a try again. I miss the mylyn features eclipse, but netbeans being lightweight and the unit testing features have swayed me to the dark side of netbeans. Maybe I will still hate eclipse.
*** This bug has been marked as a duplicate of bug 217991 ***