PHPackages                             spiffy/spiffy-test - 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. spiffy/spiffy-test

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

spiffy/spiffy-test
==================

PHPUnit bootstrapping module for ZF2

0.1.4(12y ago)237.1k21PHPPHP &gt;=5.3.3

Since Jun 17Pushed 12y ago2 watchersCompare

[ Source](https://github.com/spiffyjr/spiffy-test)[ Packagist](https://packagist.org/packages/spiffy/spiffy-test)[ Docs](http://www.github.com/spiffyjr/spiffy-test.git)[ RSS](/packages/spiffy-spiffy-test/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (7)Used By (1)

SpiffyTest
==========

[](#spiffytest)

SpiffyTest is a module for bootstrapping PHPUnit and supplying you with a basic service manager instance.

Installation
------------

[](#installation)

Installation of SpiffyTest uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
php composer.phar require spiffy/spiffy-test:0.*
```

1. Copy `spiffy-test/Bootstrap.php.dist` to your `tests/Bootstrap.php`.
2. Copy `spiffy-test/config/test.application.config.php.dist` to your `config/test.application.config.php` and modify the `modules` key to include any test dependent modules.
3. Copy `spiffy-test/config/test.module.config.php.dist` to your `config/test.module.config.php.dist` if you have test specific module overrides (i.e., removing memcache in favor of array cache).

Installation without composer is not officially supported and requires you to setup autoloading on your own.

Usage
-----

[](#usage)

Using SpiffyTest involves setting up your testing bootstrap, module config, and application config (optional).

1. copy `bootstrap.php.dist` to your `test` directory and rename to `bootstrap.php`. Setup `phpunit.xml` to use this as your bootstrap file.
2. copy `module.config.php.dist` to your `test` directory and rename to `module.config.php`. Be sure to leave `SpiffyTest`in your list of modules!
3. if you have a custom application.config.php requirement then copy `application.config.php.dist` to your `test` directory and rename to `application.config.php`.

Once everything is setup you can access the Module singleton by using `\SpiffyTest\Module::getInstance()`. This class has helper methods availabe such as `getApplication()`, `getServiceManager()` and `getApplicationConfig()` for testing a mvc stack. You can reset everything by using the `reset()` method.

### Controllers

[](#controllers)

SpiffyTest comes with `\SpiffyTest\Controller\AbstractHttpControllerTestCase` which is a customized controller test case that uses SpiffyTest's application. To use, simply have your tests extend the class.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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

Every ~60 days

Recently: every ~51 days

Total

6

Last Release

4408d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c3995d71dc504d462cdd961ef5f10c902b9e6a13b55d8baaee7afbe80f5fd52e?d=identicon)[SpiffyJr](/maintainers/SpiffyJr)

---

Top Contributors

[![spiffyjr](https://avatars.githubusercontent.com/u/2760734?v=4)](https://github.com/spiffyjr "spiffyjr (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spiffy-spiffy-test/health.svg)

```
[![Health](https://phpackages.com/badges/spiffy-spiffy-test/health.svg)](https://phpackages.com/packages/spiffy-spiffy-test)
```

###  Alternatives

[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4851.1M70](/packages/zf-commons-zfc-user)[socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

21974.2k3](/packages/socalnick-scn-social-auth)[franz-deleon/fdl-oauth2-provider

ZF2 OAuth2 Provider module

166.8k](/packages/franz-deleon-fdl-oauth2-provider)[mamuz/mamuz-blog

Provides blog feature for ZF2 with Doctrine

101.1k1](/packages/mamuz-mamuz-blog)

PHPackages © 2026

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