PHPackages                             nico-vromans/phpspec-matchers - 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. nico-vromans/phpspec-matchers

AbandonedPhpspec-extension[Testing &amp; Quality](/categories/testing)

nico-vromans/phpspec-matchers
=============================

Extension for PhpSpec with additional custom Matchers.

1.0.1(4y ago)11.8kGPL-3.0-or-laterPHPPHP &gt;=7.2

Since Mar 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nico-vromans/phpspec-matchers)[ Packagist](https://packagist.org/packages/nico-vromans/phpspec-matchers)[ Docs](https://github.com/VromansN/phpspec-matchers)[ RSS](/packages/nico-vromans-phpspec-matchers/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

PhpSpec extension that adds custom Matchers
===========================================

[](#phpspec-extension-that-adds-custom-matchers)

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

[](#installation)

Simply install via Composer:

```
composer require nico-vromans/phpspec-matchers

```

After that, add the extension to you `phpspec.yml`:

```
extensions:
    NicoVromans\PhpSpecMatchers\Extension: ~
```

Matchers and how to use them
----------------------------

[](#matchers-and-how-to-use-them)

### `beFinal()`

[](#befinal)

This checks if the tested class is a final class.

To test if a class is final:

```
$this->shouldBeFinal();
```

or if a class is not final:

```
$this->shouldNotBeFinal();
```

Extra info
----------

[](#extra-info)

For more info on custom extensions, check out PhpSpec's [Extensions manual](http://www.phpspec.net/en/stable/cookbook/extensions.html). For some more examples look at the [Example extensions](http://www.phpspec.net/en/stable/cookbook/extensions.html#example-extensions) section.

License
-------

[](#license)

GNU General Public License v3.0, check [LICENSE](LICENSE) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

3

Last Release

1505d ago

Major Versions

0.1.0 → 1.0.02019-03-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/15192f6ba7bfe682198787702d5a12a61fb9f8b98fd2c14a6e479364ce85b6ca?d=identicon)[Vromans.N](/maintainers/Vromans.N)

---

Top Contributors

[![owen-vromans](https://avatars.githubusercontent.com/u/48183857?v=4)](https://github.com/owen-vromans "owen-vromans (2 commits)")

---

Tags

extensionphpspecmatchers

### Embed Badge

![Health badge](/badges/nico-vromans-phpspec-matchers/health.svg)

```
[![Health](https://phpackages.com/badges/nico-vromans-phpspec-matchers/health.svg)](https://phpackages.com/packages/nico-vromans-phpspec-matchers)
```

###  Alternatives

[benconstable/phpspec-laravel

Test your Laravel applications with PhpSpec

144347.1k15](/packages/benconstable-phpspec-laravel)[phpspec/nyan-formatters

PHPSpec Nyan Formatter Extension

77239.9k22](/packages/phpspec-nyan-formatters)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

202.6M125](/packages/friends-of-phpspec-phpspec-code-coverage)

PHPackages © 2026

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