PHPackages                             expectation/peridot-expectation - 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. expectation/peridot-expectation

Abandoned → [expectation/peridot-expect-plugin](/?search=expectation%2Fperidot-expect-plugin)Library[Testing &amp; Quality](/categories/testing)

expectation/peridot-expectation
===============================

Expectation for peridot

4.0.0(9y ago)13.9k1MITPHPPHP &gt;=5.6.0

Since Nov 7Pushed 9y agoCompare

[ Source](https://github.com/expectation-php/peridot-expect-plugin)[ Packagist](https://packagist.org/packages/expectation/peridot-expectation)[ RSS](/packages/expectation-peridot-expectation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (22)Used By (0)

peridot-expect-plugin
=====================

[](#peridot-expect-plugin)

Expectation for [peridot](https://github.com/peridot-php/peridot)

[![Latest Stable Version](https://camo.githubusercontent.com/6ab6a700cff6ef44e42ab821eaa6984ab0757ad1454cb9910da9ab5d3e6310ba/68747470733a2f2f706f7365722e707567782e6f72672f6578706563742f70657269646f742d6578706563742d706c7567696e2f762f737461626c652e737667)](https://packagist.org/packages/expectation/peridot-expect-plugin) [![Latest Unstable Version](https://camo.githubusercontent.com/cb55ed985f664c06f2caa53eac1513f082c5052ccd28b2d0feb9452f1490bf67/68747470733a2f2f706f7365722e707567782e6f72672f6578706563742f70657269646f742d6578706563742d706c7567696e2f762f756e737461626c652e737667)](https://packagist.org/packages/expectation/peridot-expect-plugin)[![Dependency Status](https://camo.githubusercontent.com/6bad3416298c2feb3e2772284b34b8f51711e90dbbe4557ce9508fc85be5cb24/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535316661306236393731663738343333393030303265662f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/551fa0b6971f7843390002ef)[![Build Status](https://camo.githubusercontent.com/d346794c926711a7914b1eff167c2c9d44125ecafdf38db871e508834a679e51/68747470733a2f2f7472617669732d63692e6f72672f6578706563746174696f6e2d7068702f70657269646f742d6578706563742d706c7567696e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/expectation-php/peridot-expect-plugin)[![HHVM Status](https://camo.githubusercontent.com/3255ee88120fa1f60d0774418296274afd54f8f782fb3bacde9c1fe435279d81/687474703a2f2f6868766d2e683463632e64652f62616467652f6578706563742f70657269646f742d6578706563742d706c7567696e2e737667)](http://hhvm.h4cc.de/package/expect/peridot-expect-plugin)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/66e08608b95af4356d940663c2aa56097ed5bab8686cf69919a3eae65a4ab266/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6578706563746174696f6e2d7068702f70657269646f742d6578706563742d706c7567696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/expectation-php/peridot-expect-plugin/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/6595400c35ad8a54f070f3e25e055c3ae61425207e16d22d0eb5589b3d9b8c3d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6578706563746174696f6e2d7068702f70657269646f742d6578706563742d706c7567696e2f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/expectation-php/peridot-expect-plugin?branch=master)[![Stories in Ready](https://camo.githubusercontent.com/da75a434f12b68f222f9e3d6bd4cbc8cc357ef0dbfa216157cc3f6a62443eb75/68747470733a2f2f62616467652e776166666c652e696f2f6578706563746174696f6e2d7068702f70657269646f742d6578706563742d706c7567696e2e706e673f6c6162656c3d7265616479267469746c653d5265616479)](https://waffle.io/expectation-php/peridot-expect-plugin)

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

[](#installation)

Installation that uses the composer

Please add the following items to composer.json.
Then please run the composer install.

```
{
    "require-dev": {
        "expectation/peridot-expect-plugin": "3.0.0"
    }
}
```

Basic usage
-----------

[](#basic-usage)

It can be used by simply append the set to **peridot.php**.

```
use expect\peridot\ExpectPlugin;

return function(EventEmitterInterface $emitter) {
    ExpectPlugin::create()->registerTo($emitter);
};
```

or

How to configure can be found [here](https://github.com/expectation-php/expect).

```
use expect\peridot\ExpectPlugin;

return function(EventEmitterInterface $emitter) {
    ExpectPlugin::createWithConfig('.expect.toml')->registerTo($emitter);
};
```

Examples of spec
----------------

[](#examples-of-spec)

You can easily use in the spec file.

```
describe('Example', function() {
    describe('#create', function() {
        it('return instance', function() {
            expect(Example::create())->toBeAnInstanceOf('Example')
        });
    });
});
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 99.1% 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 ~32 days

Recently: every ~116 days

Total

21

Last Release

3560d ago

Major Versions

1.2.1 → 2.0.02015-04-04

2.0.1 → 3.0.02015-05-01

3.0.3 → 4.0.02016-08-10

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

3.0.0PHP &gt;=5.5.0

4.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/70c299d6d6015ee714954aa05e4d0e9c7b1d31318a5d7db5e9bb4e1f70f78afc?d=identicon)[holyshared](/maintainers/holyshared)

---

Top Contributors

[![holyshared](https://avatars.githubusercontent.com/u/167190?v=4)](https://github.com/holyshared "holyshared (115 commits)")[![waffle-iron](https://avatars.githubusercontent.com/u/6912981?v=4)](https://github.com/waffle-iron "waffle-iron (1 commits)")

---

Tags

plugintestassertperidot-phpexpectperidot

### Embed Badge

![Health badge](/badges/expectation-peridot-expectation/health.svg)

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

###  Alternatives

[peridot-php/leo

Next level assertion and matcher library for PHP

36366.4k50](/packages/peridot-php-leo)[elliotchance/concise

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

45223.8k4](/packages/elliotchance-concise)

PHPackages © 2026

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