PHPackages                             phpt/phpt - 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. phpt/phpt

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

phpt/phpt
=========

Testing Framework for PHP

1.0.x-dev(11mo ago)00BSD-4-ClausePHPPHP ^8.4CI failing

Since Jun 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/ghostwriter/phpt)[ Packagist](https://packagist.org/packages/phpt/phpt)[ Docs](https://github.com/ghostwriter/phpt)[ GitHub Sponsors](https://github.com/sponsors/ghostwriter)[ RSS](/packages/phpt-phpt/feed)WikiDiscussions 0.1.x Synced 1mo ago

READMEChangelogDependencies (15)Versions (10)Used By (0)

Phpt
====

[](#phpt)

[![GitHub Sponsors](https://camo.githubusercontent.com/1f30cd9ff8b363da6efed053954820cc75e6d02d7c477ceb4ff77de28be04033/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73706f6e736f72732f67686f73747772697465723f6c6162656c3d53706f6e736f722b4067686f73747772697465722f70687074266c6f676f3d4769744875622b53706f6e736f7273)](https://github.com/sponsors/ghostwriter)[![Automation](https://github.com/ghostwriter/phpt/actions/workflows/automation.yml/badge.svg)](https://github.com/ghostwriter/phpt/actions/workflows/automation.yml)[![Supported PHP Version](https://camo.githubusercontent.com/43917805c0bdd257774eb06080a193551b08312f45b6af1e99e8dc31d42a14f9/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f67686f73747772697465722f706870743f636f6c6f723d383839326266)](https://www.php.net/supported-versions)[![Downloads](https://camo.githubusercontent.com/cc813efc9cc105cfb1bf859f6353f641ca58cd609b681e0ac14e2c3d79fe87d2/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f67686f73747772697465722f706870743f636f6c6f723d626c7565)](https://packagist.org/packages/ghostwriter/phpt)

work in progress

Warning

This project is not finished yet, work in progress.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require ghostwriter/phpt
```

### Star ⭐️ this repo if you find it useful

[](#star-️-this-repo-if-you-find-it-useful)

You can also star (🌟) this repo to find it easier later.

Usage
-----

[](#usage)

```
// work in progress

// https://qa.php.net/phpt_details.php

// PHPT - Test File Layout.

// [] indicates optional sections.

// --TEST--
// [--DESCRIPTION--]
// [--CREDITS--]
// [--SKIPIF--]
// [--CONFLICTS--]
// [--WHITESPACE_SENSITIVE--]
// [--CAPTURE_STDIO--]
// [--EXTENSIONS--]
// [--POST-- | --PUT-- | --POST_RAW-- | --GZIP_POST-- | --DEFLATE_POST-- | --GET--]
// [--COOKIE--]
// [--STDIN--]
// [--INI--]
// [--ARGS--]
// [--ENV--]
// [--PHPDBG--]
// --FILE-- | --FILEEOF-- | --FILE_EXTERNAL-- | --REDIRECTTEST--
// [--CGI--]
// [--XFAIL--]
// [--FLAKY--]
// [--EXPECTHEADERS--]
// --EXPECT-- | --EXPECTF-- | --EXPECTREGEX-- | --EXPECT_EXTERNAL-- | --EXPECTF_EXTERNAL-- | --EXPECTREGEX_EXTERNAL--
// [--CLEAN--]
```

### Credits

[](#credits)

- [Nathanael Esayeas](https://github.com/ghostwriter)
- [All Contributors](https://github.com/ghostwriter/phpt/contributors)

### Changelog

[](#changelog)

Please see [CHANGELOG.md](./CHANGELOG.md) for more information on what has changed recently.

### License

[](#license)

Please see [LICENSE](./LICENSE) for more information on the license that applies to this project.

### Security

[](#security)

Please see [SECURITY.md](./SECURITY.md) for more information on security disclosure process.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance74

Regular maintenance activity

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Total

3

Last Release

45d ago

Major Versions

0.2.x-dev → 1.0.x-dev2025-06-19

PHP version history (2 changes)0.2.x-devPHP ^8.4

0.1.x-devPHP ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dbb0131801cc451dad9917ab29aa823b25d7eebc9f3875a9d481d109bdb44ee?d=identicon)[ghostwriter](/maintainers/ghostwriter)

---

Top Contributors

[![ghostwriter](https://avatars.githubusercontent.com/u/9754361?v=4)](https://github.com/ghostwriter "ghostwriter (1229 commits)")

---

Tags

ghostwriterphptghostwriterphpt

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3287.8M898](/packages/szepeviktor-phpstan-wordpress)[codeception/module-asserts

Codeception module containing various assertions

8550.6M1.2k](/packages/codeception-module-asserts)

PHPackages © 2026

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