PHPackages                             nexus4812/plain-php-test-framework - 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. nexus4812/plain-php-test-framework

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

nexus4812/plain-php-test-framework
==================================

v0.0.1(6mo ago)01PHPPHP ^5.3 || ^7.0 || ^8.0

Since Dec 21Pushed 6mo agoCompare

[ Source](https://github.com/nexus4812/plain-php-test-framework)[ Packagist](https://packagist.org/packages/nexus4812/plain-php-test-framework)[ RSS](/packages/nexus4812-plain-php-test-framework/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

plain-php-test-framework
------------------------

[](#plain-php-test-framework)

[日本語](doc/README_JA.md) | English

### What this is

[](#what-this-is)

A minimal test framework that works on PHP 5.3 and newer. It aims to feel PHPUnit-like so legacy projects can migrate gradually. The design keeps future switching to PHPUnit as painless as possible.

**Status: Draft. Breaking changes without backwards compatibility may happen.**

### Installation

[](#installation)

```
composer require --dev nexus4812/plain-php-test-framework
```

If you are on PHP 5.3, use `composer 2.2`.

### Good fit for

[](#good-fit-for)

- Running tests on legacy PHP 5.3 environments
- Using a PHPUnit-like style where PHPUnit itself cannot be installed
- Keeping test code aligned for a future move to PHPUnit

### Not a good fit for

[](#not-a-good-fit-for)

- Needing modern PHPUnit features (attributes, data providers, mocks, coverage, etc.)
- Expecting full PHPUnit compatibility

### Features

[](#features)

- Works on PHP 5.3 to 8.5
- Composer PSR-4 autoloading (Composer 2.2 compatible)
- Basic assertions: `assertSame` / `assertTrue` / `assertFalse` / `assertCount`
- Simple CLI runner: `bin/run-tests`

### Quick start

[](#quick-start)

1. Write a test

```
