PHPackages                             xsolve-pl/xsolve-unit-skelgen-bundle - 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. xsolve-pl/xsolve-unit-skelgen-bundle

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

xsolve-pl/xsolve-unit-skelgen-bundle
====================================

XSolve PHPUnit SkelGen Bundle to improve creating test cases for PHPUnit

v1.0.0(12y ago)810.8k2MITPHP

Since Sep 2Pushed 3y ago71 watchersCompare

[ Source](https://github.com/xsolve-pl/xsolve-unit-skelgen-bundle)[ Packagist](https://packagist.org/packages/xsolve-pl/xsolve-unit-skelgen-bundle)[ Docs](https://github.com/xsolve-pl/xsolve-unit-skelgen-bundle)[ RSS](/packages/xsolve-pl-xsolve-unit-skelgen-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

About
=====

[](#about)

[![knpbundles.com](https://camo.githubusercontent.com/7bab4a064aab0804dd6c0f44d764132498aba4b823fbf8746c892d97abac60bd/687474703a2f2f6b6e7062756e646c65732e636f6d2f78736f6c76652d706c2f78736f6c76652d756e69742d736b656c67656e2d62756e646c652f6261646765)](http://knpbundles.com/xsolve-pl/xsolve-unit-skelgen-bundle)

[![Build Status](https://camo.githubusercontent.com/437a9239de60cd9b5d2555fa6d750c639d22ed23781e1e92909fcd47c3b312ab/68747470733a2f2f7472617669732d63692e6f72672f78736f6c76652d706c2f78736f6c76652d756e69742d736b656c67656e2d62756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/xsolve-pl/xsolve-unit-skelgen-bundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/336ca173256322f4949aefb846ba7b8fb717a1c81aa4a30432b5455948119fce/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30333364616438332d373936622d343863322d626133322d3662343861346538663463332f6269672e706e67)](https://insight.sensiolabs.com/projects/033dad83-796b-48c2-ba32-6b48a4e8f4c3)

This bundle helps with PHPUnit test suites creation by using phpunit-skelgen (Skeleton Generator)

Features:

- creates test suite class respectively to given namespace (for instance Controller/DemoController.php will have test in Test/Controller/DemoControllerTest.php)
- asterisks and dots pattern matching - it will create test suites for every matching class in found directory
- fully TDD capable - creates production classes based on test suite class
- easy to extend and introduce changes in the future

[![Example usage](https://camo.githubusercontent.com/6c556d3c2a9793b2e7caa28dd3eb06b41720f564468e56f215e42aaa39d34106/68747470733a2f2f7261772e6769746875622e636f6d2f78736f6c76652d706c2f78736f6c76652d756e69742d736b656c67656e2d62756e646c652f6d61737465722f5265736f75726365732f646f632f78736f6c76652d756e69742d736b656c67656e2d62756e646c652d6578616d706c652e706e67)](https://camo.githubusercontent.com/6c556d3c2a9793b2e7caa28dd3eb06b41720f564468e56f215e42aaa39d34106/68747470733a2f2f7261772e6769746875622e636f6d2f78736f6c76652d706c2f78736f6c76652d756e69742d736b656c67656e2d62756e646c652f6d61737465722f5265736f75726365732f646f632f78736f6c76652d756e69742d736b656c67656e2d62756e646c652d6578616d706c652e706e67)

Installation
============

[](#installation)

1. Add to composer.json

    "require": { "xsolve-pl/xsolve-unit-skelgen-bundle": "1.0.\*" }
2. Install dependencies

    composer install
3. Enable the bundle in app/AppKernel.php

    public function registerBundles() { return array( // ... new Xsolve\\UnitSkelgenBundle\\XsolveUnitSkelgenBundle(), ); }

Usage
=====

[](#usage)

Generate PHPUnit test class for a single production class:

```
app/console xsolve:skelgen:test Xsolve/ExampleBundle/Controller/DefaultController

```

Generate PHPUnit test class for a namespace:

```
app/console xsolve:skelgen:test Xsolve/ExampleBundle/Controller/.

```

Nice matching! It will create tests for DefaultControllers in all the bundles:

```
app/console xsolve:skelgen:test Xsolve/*/Controller/DefaultController

```

Using the same patterns you can generate production classes from test classes:

```
app/console xsolve:skelgen:class Xsolve/ExampleBundle/Tests/Controller/DefaultControllerTest

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4685d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4609012f3b1b852c6271c8a1cdd7b460f8ed93291fe93ff66e9ab96b86fceeeb?d=identicon)[wowo](/maintainers/wowo)

---

Top Contributors

[![wowo](https://avatars.githubusercontent.com/u/100724?v=4)](https://github.com/wowo "wowo (7 commits)")

---

Tags

phpunitTDDtest-driven-developmentunit-testsSkelGen

### Embed Badge

![Health badge](/badges/xsolve-pl-xsolve-unit-skelgen-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/xsolve-pl-xsolve-unit-skelgen-bundle/health.svg)](https://phpackages.com/packages/xsolve-pl-xsolve-unit-skelgen-bundle)
```

###  Alternatives

[codedungeon/phpunit-result-printer

PHPUnit Pretty Result Printer

1.2k8.9M407](/packages/codedungeon-phpunit-result-printer)[lchrusciel/api-test-case

Perfect PHPUnit TestCase for JSON/XML API TDD with Symfony.

4125.9M71](/packages/lchrusciel-api-test-case)[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.7M518](/packages/php-mock-php-mock-phpunit)[elliotchance/concise

Concise is test framework for using plain English and minimal code, built on PHPUnit.

45224.0k4](/packages/elliotchance-concise)[seec/phpunit-consecutive-params

Drop-in Trait to use removed ConsecutiveParams from PhpUnit

18744.8k11](/packages/seec-phpunit-consecutive-params)[janmarek/mockista

Mockista is library for mocking, which I've written, because I find mocking in PHPUnit awful.

29221.7k28](/packages/janmarek-mockista)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
