PHPackages                             watoki/scrut - 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. watoki/scrut

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

watoki/scrut
============

Injectable test classes for PHP.

v0.3(11y ago)03.9k6MITPHPPHP &gt;=5.3.8

Since Nov 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/watoki/scrut)[ Packagist](https://packagist.org/packages/watoki/scrut)[ Docs](http://github.com/watoki/scrut)[ RSS](/packages/watoki-scrut/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (6)

scrut [![Build Status](https://camo.githubusercontent.com/a7f889e6961ef7b8a894dadfa24cadaa56b43b4fac9ef5b433b4d5777cc2a862/68747470733a2f2f7472617669732d63692e6f72672f7761746f6b692f73637275742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/watoki/scrut)
=========================================================================================================================================================================================================================================================================

[](#scrut-)

Have you ever thought how nice it would be to use dependency injection in your test classes? Search no further! *scrut* uses \[factory\] to inject it's properties. Just extend from `Specification` (which extends [PHPUnit](http://phpunit.de)'s `TestCase`) and define its dependencies by marking injectable properties with `two->doSomething();
        $this->assertTrue($this->one->everythingIsCool());
    }
}
```

*scrut* can be used to create maintainable test suites which can also serve quite nicely as [living documentation](http://specificationbyexample.com/key_ideas.html)which then can be published (with [dox](http://dox.rtens.org) for example).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

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 ~544 days

Total

2

Last Release

4024d ago

### Community

Maintainers

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

---

Top Contributors

[![rtens](https://avatars.githubusercontent.com/u/1468866?v=4)](https://github.com/rtens "rtens (35 commits)")

---

Tags

testwatokiSbEliving documentation

### Embed Badge

![Health badge](/badges/watoki-scrut/health.svg)

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

###  Alternatives

[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[ta-tikoma/phpunit-architecture-test

Methods for testing application architecture

10745.9M13](/packages/ta-tikoma-phpunit-architecture-test)[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.2M399](/packages/php-mock-php-mock-phpunit)[fr3d/swagger-assertions

Test your API requests and responses against your swagger definition

138850.9k5](/packages/fr3d-swagger-assertions)[innmind/black-box

Test library

44178.7k93](/packages/innmind-black-box)[laminas/laminas-test

Tools to facilitate integration testing of laminas-mvc applications

122.9M184](/packages/laminas-laminas-test)

PHPackages © 2026

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