PHPackages                             tigrez/iexpect - 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. tigrez/iexpect

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

tigrez/iexpect
==============

A very small unit test library

1.1.2(9y ago)1271MITPHPPHP &gt;=5.3.0

Since Dec 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/LucGeritz/IExpect)[ Packagist](https://packagist.org/packages/tigrez/iexpect)[ Docs](https://github.com/LucGeritz/IExpect)[ RSS](/packages/tigrez-iexpect/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

\##I Expect

IExpect is a small unit test library for use in PHP. It's syntax is intuitive.

The assertion

*I expect 3 \* 2 to equal 6*

can be put to the test with

`$I->expect(3*2)->equals(6);`

How nice is that..

`equals` can be other things as well.. `contains`, `hasKey` (talking arrays here) and more.

More the negative type? How about `$I->expect(1+1)->not()->equals(3)`.

While I'm still working at the documentation please refer to the source of the `Expectation` class what more it can do. In the `demo` folder you can find very useful examples as well.

You want more checks? It's easy to extend the Expectation class.

\##I don't Expect.. ..you to expect is has the same functionality like say *PHPUnit*. If it did it wouldn't be small now would it? So don't expect *mocks*, *stubs* and things like that, or being able to test *exceptions thrown*.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

3488d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1430547?v=4)[LucGeritz](/maintainers/LucGeritz)[@LucGeritz](https://github.com/LucGeritz)

---

Top Contributors

[![LucGeritz](https://avatars.githubusercontent.com/u/1430547?v=4)](https://github.com/LucGeritz "LucGeritz (15 commits)")

---

Tags

testunit test

### Embed Badge

![Health badge](/badges/tigrez-iexpect/health.svg)

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

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k516.1M26.1k](/packages/mockery-mockery)[hamcrest/hamcrest-php

This is the PHP port of Hamcrest Matchers

7.0k503.3M117](/packages/hamcrest-hamcrest-php)[nelmio/alice

Expressive fixtures generator

2.5k44.6M154](/packages/nelmio-alice)[zenstruck/foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.

79513.1M132](/packages/zenstruck-foundry)[php-mock/php-mock

PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.

36919.3M119](/packages/php-mock-php-mock)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

34113.7M439](/packages/brain-monkey)

PHPackages © 2026

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