PHP Unit in Netbeans for Moodle

PHP Unit in Netbeans for Moodle

by Manuri Perera -
Number of replies: 2

Hello,

I'm doing my first project with PHP and Moodle. I'm using Netbeans IDE. I need to use PHPUnit for testing. I have installed PHPUnit and it is working.

But the problem is I can not create test cases for my plugin for Moodle. I created a new project, made var/www/moodle the source directory and opened moodle in Netbeans. Now my problems is how to create test cases. When I right click on my plugin file->tools->create PHPUnit tests, it asks for a directory for tests of my project. What should I choose there ? PHPUnit test cases were not created whatever the directory I chose.

Average of ratings: -
In reply to Manuri Perera

Re: PHP Unit in Netbeans for Moodle

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Don't use the silly IDE wizard to create the test. Just create the file manually, for example by copying an existing test file and editing it.

Average of ratings: Useful (1)