Search code examples
phpphpunitpear

PHPUnit's Skeleton Generator scripts doesn't exist


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.


Solution

  • 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