Download the PHP package cyberpearuk/phpunit-skelgen without Composer
On this page you can find all versions of the php package cyberpearuk/phpunit-skelgen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cyberpearuk/phpunit-skelgen
More information about cyberpearuk/phpunit-skelgen
Files in cyberpearuk/phpunit-skelgen
Package phpunit-skelgen
Short Description Tool that can generate skeleton test classes from production code classes and vice versa
License BSD-3-Clause
Homepage https://github.com/sebastianbergmann/phpunit-skeleton-generator
Informations about the package phpunit-skelgen
PHPUnit 8 Skeleton Generator
phpunit-skelgen
is a tool that can generate skeleton test classes from production
code classes and vice versa.
This is a fork of the original sebastianbergmann/phpunit-skeleton-generator
which was abondoned at ~v4 of PHPUnit, to provide support for PHPUnit 8 and PHP7.1.
This fork is maintained by www.cyberpear.co.uk.
Installation
Composer
Simply add a development dependency on cyberpearuk/phpunit-skelgen
to your project
using Composer:
For a system-wide installation via Composer, you can run:
Make sure you have ~/.composer/vendor/bin/
in your path.
Usage
CLI
./vendor/bin/phpunit-skelgen --ansi generate-test <namespace> <src-file> <test-class-name> <tst-file>
Assertion Annotations
phpunit-skelgen
will generate a test case for each assertion defined in the
methods doc comment. For example the below will generate 4 test cases:
Maintainer
This repository is maintained by Black Pear Digital.
All versions of phpunit-skelgen with dependencies
sebastian/version Version ^2.0
phpunit/php-text-template Version ^1.2
symfony/console Version ^4.3
squizlabs/php_codesniffer Version *