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 225909 - Wrong filename generated for unit tests
Summary: Wrong filename generated for unit tests
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 17:52 UTC by gbc
Modified: 2013-02-12 11:49 UTC (History)
2 users (show)

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 gbc 2013-02-08 17:52:27 UTC
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".
Comment 1 Tomas Mysik 2013-02-11 05:53:03 UTC
Which version of NetBeans do you have? Also, could you please copy the Output window content and paste it here?

Thanks.
Comment 2 Vladimir Riha 2013-02-11 07:58:16 UTC
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)
Comment 3 Tomas Mysik 2013-02-11 08:20:38 UTC
Will look at it.
Comment 4 Tomas Mysik 2013-02-11 08:38:48 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/9924f967c842
Comment 5 Quality Engineering 2013-02-12 01:40:42 UTC
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
Comment 6 Martin Kanak 2013-02-12 11:49:37 UTC
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)