phpunit-skelgen is a tool that can generate skeleton test classes from production code classes and vice versa.
There a two supported ways of installing PHPUnit_SkeletonGenerator.
You can use the PEAR Installer to download and install PHPUnit_SkeletonGenerator as well as its dependencies. You can also download a PHP Archive (PHAR) of PHPUnit_SkeletonGenerator that has all required dependencies of PHPUnit_SkeletonGenerator bundled in a single file.
The following two commands (which you may have to run as
root) are all that is required to install PHPUnit_SkeletonGenerator using the PEAR Installer:
pear config-set auto_discover 1 pear install pear.phpunit.de/PHPUnit_SkeletonGenerator
wget https://phar.phpunit.de/phpunit-skelgen.phar chmod +x phpunit-skelgen.phar
The skeleton generator is documented in the PHPUnit Manual.