PHPackages                             umc/uutg - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. umc/uutg

ActiveLibrary[Testing &amp; Quality](/categories/testing)

umc/uutg
========

PHP Unit test generator

2.0.0(1y ago)87961MITPHP

Since Jun 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/UltimateModuleCreator/uutg)[ Packagist](https://packagist.org/packages/umc/uutg)[ RSS](/packages/umc-uutg/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

Ultimate Unit Test Generator (UUTG)
===================================

[](#ultimate-unit-test-generator-uutg)

This is a standalone application for generating the boilerplate for unit tests for PHP unit

Story
-----

[](#story)

I like writing unit tests for the code I write. But I don't like writing the same thing over and over again.
So I created this application that does (should do / will hopefully do) the boilerplate for me.

What it does.
-------------

[](#what-it-does)

It generates a class which extends `PHPUnit\Framework\TestCase` and contains

- a `setUp` method where all class dependencies and public method parameters are mocked.
- empty methods for each public method in the class where you need to add your tests.

Example
-------

[](#example)

(follow the inline comments in the generated code) For this class and the default profile (see profiles section lower)

```
