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.
Right click on a PHP file in tab "Projects" -> Tools -> Create PHP unit tests: the generated filename for the unit test script is wrong. For example, if the PHP file is "BaseView.php", the generated filename for the test script is "BaseView.pTest.php" instead of "BaseViewTest.php".
Which version of NetBeans do you have? Also, could you please copy the Output window content and paste it here? Thanks.
It happens in Dev version, I tried it with some web-main build from Friday and today's trunk. Output window: /usr/bin/php /usr/bin/phpunit-skelgen --test -- Foo /var/www/PhpProject1/Foo.php FooTest /var/www/PhpProject1/tests/Foo.pTest.php PHPUnit Skeleton Generator 1.2.0 by Sebastian Bergmann. Wrote skeleton for "FooTest" to "/var/www/PhpProject1/tests/Foo.pTest.php". Done. Product Version: NetBeans IDE Dev (Build 201302102300) Java: 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b01 System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Will look at it.
Fixed. http://hg.netbeans.org/web-main/rev/9924f967c842
Integrated into 'main-golden', will be available in build *201302112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9924f967c842 User: Tomas Mysik <tmysik@netbeans.org> Log: #225909 - Wrong filename generated for unit tests
verified Product Version: NetBeans IDE Dev (Build 201302112300) Java: 1.7.0_13; Java HotSpot(TM) Client VM 23.7-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20 System: Linux version 3.2.0-37-generic running on i386; UTF-8; en_US (nb)