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

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

skyzyx/phpt
===========

Parses PHPT unit test files into sections as key-value pairs.

1.1(14y ago)39MITPHPPHP &gt;=5.3

Since Feb 8Pushed 14y ago1 watchersCompare

[ Source](https://github.com/skyzyx/phpt)[ Packagist](https://packagist.org/packages/skyzyx/phpt)[ Docs](http://github.com/skyzyx/phpt)[ RSS](/packages/skyzyx-phpt/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

PHPT Component
==============

[](#phpt-component)

Parses PHPT unit test files into sections as key-value pairs.

Example
-------

[](#example)

Say, for example, you have this PHPT unit test:

```
--TEST--
Test that my code works!

--DESCRIPTION--
This test covers [blah, blah, blah...]

--CREDITS--
Zoe Slattery zoe@php.net
# TestFest Munich 2009-05-19

--FILE--

--EXPECT--
array(2) {
  ["hello"]=>
  string(5) "World"
  ["goodbye"]=>
  string(7) "MrChips"
}

```

You decide that you want to grab the contents of the `FILE` header:

```

```

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

[](#installation)

### Install source from GitHub

[](#install-source-from-github)

To install the source code:

```
git clone git://github.com/skyzyx/phpt.git

```

And include it in your scripts:

```
require_once '/path/to/phpt/src/PHPT.php';

```

### Install with Composer

[](#install-with-composer)

If you're using [Composer](https://github.com/composer/composer) to manage dependencies, you can add PHP with it.

```
{
	"require": {
		"skyzyx/phpt": ">=1.1"
	}
}

```

### Using a Class Loader

[](#using-a-class-loader)

If you're using a class loader (e.g., [Symfony Class Loader](https://github.com/symfony/ClassLoader)):

```
$loader->registerNamespace('Skyzyx\\Components\\PHPT', 'path/to/vendor/phpt/src');

```

Tests
-----

[](#tests)

Tests are written in [PHPT](http://qa.php.net/phpt_details.php) format. You can run them with either the PEAR Test Runner or with PHPUnit 3.6+.

```
cd tests/
pear run-tests .

```

...or...

```
cd tests/
phpunit .

```

License &amp; Copyright
-----------------------

[](#license--copyright)

Copyright (c) 2010-2012 [Ryan Parman](http://ryanparman.com). Licensed for use under the terms of the [MIT license](http://www.opensource.org/licenses/mit-license.php).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

5258d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39447?v=4)[Ryan Parman](/maintainers/skyzyx)[@skyzyx](https://github.com/skyzyx)

---

Top Contributors

[![skyzyx](https://avatars.githubusercontent.com/u/39447?v=4)](https://github.com/skyzyx "skyzyx (13 commits)")

---

Tags

testphpt

### Embed Badge

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

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

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k526.2M26.9k](/packages/mockery-mockery)[hamcrest/hamcrest-php

This is the PHP port of Hamcrest Matchers

7.0k513.4M122](/packages/hamcrest-hamcrest-php)[nelmio/alice

Expressive fixtures generator

2.5k45.2M166](/packages/nelmio-alice)[zenstruck/foundry

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

79613.7M149](/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.

37419.9M125](/packages/php-mock-php-mock)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

34214.3M482](/packages/brain-monkey)

PHPackages © 2026

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