a tool that can generate skeleton test classes from production code classes and vice versa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Vítězslav Dvořák 5f238a1376 fixed missing php-xml dependency on Bookworm 2 months ago
.github Create FUNDING.yml 11 months ago
build Initial work on tests 8 years ago
debian fixed missing php-xml dependency on Bookworm 2 months ago
nbproject Generate tests with use of class in original namespace 2 years ago
src testmethod name ucworlds but first character 1 year ago
tests Initial work on tests 8 years ago
.gitignore Debian 9 successfull build 2 years ago
LICENSE Cleanup 8 years ago
Makefile Jenkins file added 7 months ago
README.md Old repo removed 2 years ago
build.xml Package code templates in PHAR 8 years ago
composer.json New minversion is php7.1 2 years ago
phpunit-skelgen Cleanup 8 years ago
phpunit-skelgen.png testmethod name ucworlds but first character 1 year ago
phpunit-skelgen.svg testmethod name ucworlds but first character 1 year ago
phpunit-skelgen.xcf testmethod name ucworlds but first character 1 year ago

README.md

php-skelgen

PHPUnit Skeleton Generator

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

Installation

Debian Package

Add the new Repo:

echo "deb http://repo.vitexsoftware.cz $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg

refresh cache and install package:

apt update
apt install phpunit-skelgen

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": {
        "vitexsoftware/phpunit-skeleton-generator": "*"
    }
}

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

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

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