Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create PHPUnit Test File Action #10

Open
junichi11 opened this issue Mar 12, 2013 · 2 comments
Open

Create PHPUnit Test File Action #10

junichi11 opened this issue Mar 12, 2013 · 2 comments

Comments

@junichi11
Copy link
Member

Create empty test file to protected/tests/unit .

junichi11 added a commit that referenced this issue Mar 12, 2013
@petrabarus
Copy link

Hi,

I haven't tried your plugin yet. (I promise I will install it shortly). Just curious about this one.

  1. Let's say I have a class file /protected/components/mydir1/mydir2/MyClass.php. When I click the Create PHPUnit test file, will it create flatly in the/protected/tests/units/MyClassTest.phpor according to the directory/protected/tests/units/components/mydir1/mydir2/MyClassTest.php`
  2. Can I automatically use the action "file > right click > Test" (or Ctrl + F6 on the file)? Because that one will use the PHPUnit configuration from Netbeans (e.g. the bootstrap file and the XML configuration file).

@junichi11
Copy link
Member Author

If you use the Create PHPUnit Test of NetBeans, you can ignore this feature.
NetBeans has already feature for creating PHPUnitTest.

But I saw yii document[1], and I thought that I'll add this feature.

1.Directories are not added. i.e. /protected/tests/units/MyClassTest.php
if you would like to keep directory tree and would like to use skelgen, you should use feature of NB PHP.

[1]http://www.yiiframework.com/doc/guide/1.1/en/test.unit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants