PHPackages                             gabrieljmj/should-php - 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. gabrieljmj/should-php

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

gabrieljmj/should-php
=====================

Tests for classes

310PHP

Since Mar 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/GabrielJMJ/ShouldPHP)[ Packagist](https://packagist.org/packages/gabrieljmj/should-php)[ RSS](/packages/gabrieljmj-should-php/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ShouldPHP
=========

[](#shouldphp)

[![Build Status](https://camo.githubusercontent.com/b8ebd7d63db1f2f426278f7e9a148bbea45089a629a0dba475261ef1abcc5ebc/68747470733a2f2f7472617669732d63692e6f72672f4761627269656c4a4d4a2f53686f756c645048502e7376673f6272616e63683d646576)](https://travis-ci.org/GabrielJMJ/ShouldPHP) [![Status](https://camo.githubusercontent.com/9d14a47666782888e79f9eceffeff3482fee5b6c161857fde1819048f63520f8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d646576656c6f706d656e742d626c75652e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/9d14a47666782888e79f9eceffeff3482fee5b6c161857fde1819048f63520f8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7374617475732d646576656c6f706d656e742d626c75652e7376673f7374796c653d666c6174) [![License](https://camo.githubusercontent.com/7ea072d28bd53bf691baca66c5777f225ba21f1cfcb91ce37f34e5eb3f29484a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6761627269656c6a6d6a2f73686f756c642d7068702e737667)](https://packagist.org/packages/gabrieljmj/should-php) [![Latest Unstable Version](https://camo.githubusercontent.com/996d33380545380622be3686a57886e8b0a79dc06ee3d2fa03bf5e532c829214/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d6465762d2d6465762d6f72616e67652e737667)](https://packagist.org/packages/gabrieljmj/should-php) [![Total Downloads](https://camo.githubusercontent.com/8d53c05a8b335de0f3b63ebf856c410cda1b85f3ab1675c21cc95c4148fb1ece/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6761627269656c6a6d6a2f73686f756c642d7068702e737667)](https://packagist.org/packages/gabrieljmj/should-php) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/67335355e6d86f8c01218922ed817eb0657fa8f5ebbadc5a18fc40351a234ae1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6761627269656c6a6d6a2f73686f756c647068702e737667)](https://scrutinizer-ci.com/g/GabrielJMJ/ShouldPHP/?branch=dev)

**ShouldPHP** is (or will be) a library for you, developer, to test your classes and objects and their methods and properties with a simple syntax based on "should". The idea came to my mind after seeing the framework [Should.JS](https://github.com/shouldjs/should.js) for [Node.JS](nodejs.org).

- **For now has a few assertions**
- [Little documentation](https://github.com/GabrielJMJ/ShouldPHP/wiki/Documentation)
- [Simple Should](https://gist.github.com/GabrielJMJ/26fed8fff56e65cd8b4f)

```
                                                                   ____________________
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@======@@@@@@     |                    |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@|_____/@@@@@@@ ___|                    |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@  \__    YOU SHOULD...!   |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@/\@@@@@@/\@@@@@@      |                    |
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@                                     |____________________|
@|               /@@@@@@@@@@@
@\               /@@@@@@@@@@//
@@\             /@@@@@@@@@@@@//
@@@\          /@@@@@@@@@@@@//
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@----------. @
@@@@@@@@@@@@@@@@@@@@@|           \ @
@@@@@@@@@@@@@@@@@@@@@|            | @
@@@@@@@@@@@@@@@@@@@@@|___________/ @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fcbdf815749595d3dcfd4fb781e2cac05aa6d132123aa9da889d2c5ca6c8e11?d=identicon)[GabrielJMJ](/maintainers/GabrielJMJ)

---

Top Contributors

[![gabrieljmj](https://avatars.githubusercontent.com/u/2223216?v=4)](https://github.com/gabrieljmj "gabrieljmj (107 commits)")

---

Tags

shouldtddtesttesting

### Embed Badge

![Health badge](/badges/gabrieljmj-should-php/health.svg)

```
[![Health](https://phpackages.com/badges/gabrieljmj-should-php/health.svg)](https://phpackages.com/packages/gabrieljmj-should-php)
```

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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