PHPackages                             bravesheep/phpspec-extra-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. bravesheep/phpspec-extra-matchers

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

bravesheep/phpspec-extra-matchers
=================================

Extra matchers for phpspec

v0.1.1(11y ago)0545MITPHP

Since Mar 31Pushed 11y ago3 watchersCompare

[ Source](https://github.com/bravesheep/phpspec-extra-matchers)[ Packagist](https://packagist.org/packages/bravesheep/phpspec-extra-matchers)[ RSS](/packages/bravesheep-phpspec-extra-matchers/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

Extra phpspec matchers
======================

[](#extra-phpspec-matchers)

`bravesheep/phpspec-extra-matchers` contains several extra matchers for phpspec, they are explained below:

- **`ContainStringMatcher`**: This matcher adds `containString(substr)` or `contain(substr)` for strings. When given a substring of the subject they match.
- **`FalseMatcher`**: Adds `beFalse()`, equivalent to `be(false)`.
- **`MaximumEqualMatcher`**: Adds `beAtMost(number)`, which matches when the subject is less than or equal to the expected value (i.e. the `has(selector, locator)` returns true.
- **`Mink\RegexUrlMatcher`**: adds `matchAddress(path)` and `matchUrl(path)` which match if the regex matches the path, it works on `Behat\Mink\Session` subjects.
- **`Mink\UrlMatcher`**: adds `haveAddress(path)`, `haveUrl(path)`, `beAtAddress(path)` and `beAtUrl(path)`, matches if the current url is at the indicated path. It works on `Behat\Mink\Session` subjects.
- **`Mink\StatusCodeMatcher`**: adds `haveStatusCode(code)` and matches for `Behat\Mink\Session` subjects on the status code.
- **`Mink\TextMatcher`**: adds `containText(string)` and matches for `Behat\Mink\Element\ElementInterface` subjects if their text contains the expected string.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

4299d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86a9633404b0317dcde9ecb9c54f88c4d54bc42bb137d462933773bbe3a539b9?d=identicon)[rnijveld](/maintainers/rnijveld)

![](https://www.gravatar.com/avatar/664f27a4241e63b3e2cff68a436e2ef6930c926dd0ae0fb4973bfb969cab1754?d=identicon)[marlon](/maintainers/marlon)

---

Top Contributors

[![rnijveld](https://avatars.githubusercontent.com/u/193783?v=4)](https://github.com/rnijveld "rnijveld (6 commits)")

---

Tags

specificationBDDTDDspecphpspecSpecBDD

### Embed Badge

![Health badge](/badges/bravesheep-phpspec-extra-matchers/health.svg)

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

###  Alternatives

[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)[bossa/phpspec2-expect

Helper that decorates any SUS with a phpspec lazy object wrapper

741.8M87](/packages/bossa-phpspec2-expect)[ciaranmcnulty/phpspec-typehintedmethods

Extension for phpspec to enhance generated methods

3089.3k31](/packages/ciaranmcnulty-phpspec-typehintedmethods)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

202.6M125](/packages/friends-of-phpspec-phpspec-code-coverage)[polishsymfonycommunity/symfony2-mocker-extension

Behat extension for mocking services defined in the Symfony2 dependency injection container.

26253.1k4](/packages/polishsymfonycommunity-symfony2-mocker-extension)[sofa/laravel-kahlan

Kahlan specs suite for testing Laravel applications

1524.2k](/packages/sofa-laravel-kahlan)

PHPackages © 2026

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