سؤال

I had been trying to use PHPUnit on Netbeans so I installed it using pear, however, when I try to set up the path to the Skeleton Generator scripts(phpunit-skelgen.bat) in the options menu, I am unable to find the path to the phpunit-skelgen.bat.Only the PHPUnit script exists in (D:\xampp\php\phpunit.bat).I've read couple of tutorials on how to install but it doesn't work.

هل كانت مفيدة؟

المحلول 2

You can install it from composer :

{
    "require-dev": {
        "phpunit/phpunit-skeleton-generator": "*"
    }
}

Or directly download and use the phar :

wget https://phar.phpunit.de/phpunit-skelgen.phar
php phpunit-skelgen.phar

نصائح أخرى

Although the skeleton generator is mentioned in the PHPUnit documentation, it is not bundled with PHPUnit, you have to download it separately here https://github.com/sebastianbergmann/phpunit-skeleton-generator

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top