I just installed phpUnit and PHPUnit Skeleton Generator using the following guides phpUnit and PHPUnit Skeleton Generator. And then I start to configure phpUnit in NetBeans;
I go to
Tools-> Options -> PHP -> Frameworks and Tools -> PHP Unit
and I changed PHPUnit Script to /usr/local/bin/phpunit
and changed Skeleton Generator Script to /usr/local/bin/phpunit-skelgen
.
I also add PHP5 interpreter directory, which is /opt/lampp/bin/php
.
And finally add the folder that include both phpunit and phpunit-skelgen to Global Include Path.
I tried to run the example in Getting Started with PHPUnit, Put i got No test Executed
in Test result window and unrecognized option --run
on Output window.
I found the following thread and do the solution provided
Solved by adding below line to Calculatortest.php file.
require_once dirname(__FILE__) . '/../Calculator.php';
but the problem still exists. When i try to use terminal the test run correctly.
How can i solve this problem without removing netbeans ?
I'm using
- Ubunut 14.04 LTS
- PHPUnit 4.8.6 by Sebastian Bergmann and contributors,
- NetBeans IDE 8.0.2
- XAMPP