Skip to content
Tool that can generate skeleton test classes from production code classes and vice versa.
PHP
Latest commit 7ede4dc Apr 18, 2016 @sebastianbergmann Update README.md
Failed to load latest commit information.
build Initial work on tests Apr 27, 2014
src Prepare release May 14, 2014
tests Initial work on tests Apr 27, 2014
.gitignore Cleanup Apr 27, 2014
LICENSE Cleanup Apr 27, 2014
README.md Update README.md Apr 18, 2016
build.xml Package code templates in PHAR May 14, 2014
composer.json Allow version 2.0 Apr 18, 2016
phpunit-skelgen Cleanup Apr 27, 2014

README.md

This project has been abandoned and is no longer maintained.

PHPUnit Skeleton Generator

phpunit-skelgen is a tool that can generate skeleton test classes from production code classes and vice versa.

Installation

PHP Archive (PHAR)

The easiest way to obtain phpunit-skelgen is to download a PHP Archive (PHAR) that has all required dependencies of phpunit-skelgen bundled in a single file:

wget https://phar.phpunit.de/phpunit-skelgen.phar
chmod +x phpunit-skelgen.phar
mv phpunit-skelgen.phar /usr/local/bin/phpunit-skelgen

You can also immediately use the PHAR after you have downloaded it, of course:

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

Composer

Simply add a dependency on phpunit/phpunit-skeleton-generator to your project's composer.json file if you use Composer to manage the dependencies of your project. Here is a minimal example of a composer.json file that just defines a development-time dependency on phpunit/phpunit-skeleton-generator:

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

For a system-wide installation via Composer, you can run:

composer global require "phpunit/phpunit-skeleton-generator=*"

Make sure you have ~/.composer/vendor/bin/ in your path.

Something went wrong with that request. Please try again.