PHPackages                             dia-nz/silverstripe-phockito - 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. dia-nz/silverstripe-phockito

ActiveSilverstripe-module[Testing &amp; Quality](/categories/testing)

dia-nz/silverstripe-phockito
============================

Integrate Phockito (a PHP Mocking framework) with SilverStripe

1.0(6y ago)0130BSD-3-ClausePHP

Since Sep 3Pushed 6y ago3 watchersCompare

[ Source](https://github.com/DIA-NZ/silverstripe-phockito)[ Packagist](https://packagist.org/packages/dia-nz/silverstripe-phockito)[ RSS](/packages/dia-nz-silverstripe-phockito/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Phockito integration module for SilverStripe
============================================

[](#phockito-integration-module-for-silverstripe)

Phockito generates subclasses of the class under mock or spy. This doesn't work well with SilverStripe, which builds a manifest of classes and expects them to remain static during execution.

This module provides integration between SilverStripe and Phockito, so that every time you create a mock or spy with Phockito, it's registered in SilverStripe's ClassManifest.

This all happens automatically, so you don't have to worry about it - just add this module to your composer.json, then start calling Phocktio::mock or Phockito::spy in your tests.

silverstripe-phockito
=====================

[](#silverstripe-phockito)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

2443d ago

### Community

Maintainers

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

---

Tags

testingmocksmockito

### Embed Badge

![Health badge](/badges/dia-nz-silverstripe-phockito/health.svg)

```
[![Health](https://phpackages.com/badges/dia-nz-silverstripe-phockito/health.svg)](https://phpackages.com/packages/dia-nz-silverstripe-phockito)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k892.4M1.5k](/packages/phpunit-php-code-coverage)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symfony/phpunit-bridge

Provides utilities for PHPUnit, especially user deprecation notices management

2.5k201.2M4.2k](/packages/symfony-phpunit-bridge)[behat/mink

Browser controller/emulator abstraction for PHP

1.6k86.1M606](/packages/behat-mink)

PHPackages © 2026

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