PHPackages                             kazu9su/functional-tester - 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. [Framework](/categories/framework)
4. /
5. kazu9su/functional-tester

ActiveLibrary[Framework](/categories/framework)

kazu9su/functional-tester
=========================

This is a library for functional test of PHP legacy products

0.0.2(10y ago)712.7k1MITPHPPHP &gt;=5.4

Since Dec 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kazu9su/functional-tester)[ Packagist](https://packagist.org/packages/kazu9su/functional-tester)[ Docs](https://github.com/kazu9su/Test)[ RSS](/packages/kazu9su-functional-tester/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

FunctionalTester library
========================

[](#functionaltester-library)

[![Build Status](https://camo.githubusercontent.com/5bb17c6cede1cb4b848b62c38f4dd27382b4f67233aded6c34fc20efc6203b53/68747470733a2f2f7472617669732d63692e6f72672f6b617a753973752f66756e6374696f6e616c2d7465737465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kazu9su/functional-tester)

This is a library for functional test of PHP legacy products.
If you have difficulty with testing such products, this library can help you.

Usage
-----

[](#usage)

First, create a new "FunctionalTester" instance.

You can set session, document root and include paths used in your target product.

If you call `request` method like http request, you can get a parsed response instance of `GuzzleHttp\Message\Response`

```
use FunctionalTester/FunctionalTester;

class IndexTest extends PHPUnit_Framework_TestCase
{
    public function testIndex
    {
        $tester = new FunctionalTester();

        //set session used in your target product.
        $tester->setSession(['id' => 'hogehoge']);

        //set your document root. you can also set as constructer 1st argument.
        $tester->setDocumentRoot('/path/to/src');

        //set include path used in your target product. you can also set as constructer 2nd argument.
        $tester->setIncludePath('.:/usr/bin/php');

        //you can also add
        $tester->addIncludePath(':/path/to/src');

        //you can call get or post method like http request
        $response = $tester->get('index.php', ['username' => 'hogehoge']);

        //you can assert request results like this.
        $this->assertEquals(200, $response->getStatusCode());
        $this->assertEquals('OK', $response->getBody());
    }
}
```

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

[](#installation)

You can install this library through [Composer](https://getcomposer.org/) .

```
$ composer require kazu9su/functional-tester
```

This will install FunctionalTester and all required dependencies.

Tests
-----

[](#tests)

To execute the test suite, you'll need phpunit.

```
$ phpunit
```

License
-------

[](#license)

The FunctionalTester is licensed under the MIT license. See [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

3775d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a85ffd9f0b87d512cbee5ec855e483da57c7539f371facd7a8c658a52da59da?d=identicon)[kazu9su](/maintainers/kazu9su)

---

Top Contributors

[![yowcow](https://avatars.githubusercontent.com/u/213709?v=4)](https://github.com/yowcow "yowcow (2 commits)")

---

Tags

apiframeworkmicrorouter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kazu9su-functional-tester/health.svg)

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

###  Alternatives

[slim/slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs

12.2k49.9M1.3k](/packages/slim-slim)

PHPackages © 2026

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