PHPackages                             michel/unitester - 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. michel/unitester

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

michel/unitester
================

PHP UniTester is a unit testing library for PHP that provides a straightforward interface for writing and executing tests. It focuses on a minimalist approach, allowing developers to create assertions and organize tests at the lowest level of PHP, without reliance on complex external libraries.

1.0.0(8mo ago)03318MITPHPPHP &gt;=7.4

Since Dec 14Pushed 8mo agoCompare

[ Source](https://github.com/michelphp/unitester)[ Packagist](https://packagist.org/packages/michel/unitester)[ RSS](/packages/michel-unitester/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (18)

PHP UniTester
=============

[](#php-unitester)

**UniTester** is a lightweight, zero-dependency unit testing library for PHP. It is designed for developers who want to write tests at the lowest level of PHP, without the overhead or complexity of massive frameworks.

---

🇬🇧 English Documentation
------------------------

[](#-english-documentation)

### 💡 Philosophy

[](#-philosophy)

- **Zero Dependency**: UniTester relies on no external libraries. Install it, and it works. No version conflicts, no bloated `vendor`.
- **Simplicity**: No magic, no complex annotations. Just PHP code.
- **Performance**: Built to be fast and to help you test your own code's performance.
- **Clarity**: Explicit error messages that tell you exactly what went wrong (types, JSON content, etc.).

### 📦 Installation

[](#-installation)

```
composer require michel/unitester
```

### 🚀 Usage

[](#-usage)

1. Create a `tests/` directory at your project root.
2. Create a test class extending `Michel\UniTester\TestCase`.
3. Implement the `execute()` method to list your tests.

Example:

```
