PHPackages                             kcmerrill/phpwebunit - 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. kcmerrill/phpwebunit

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

kcmerrill/phpwebunit
====================

A simpletest like visual for phpunit. Simple and easy to use!

4661[1 issues](https://github.com/kcmerrill/phpwebunit/issues)PHP

Since Apr 24Pushed 13y agoCompare

[ Source](https://github.com/kcmerrill/phpwebunit)[ Packagist](https://packagist.org/packages/kcmerrill/phpwebunit)[ RSS](/packages/kcmerrill-phpwebunit/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPWebUnit
==========

[](#phpwebunit)

Love TDD? Love PHPUnit? Love the simplicity of SimpleTest? Me too .. this is a simple wrapper utility that lets one use phpunit in a web browser, that has the same visual clues that simpletest does. A simple green bar, or a red bar(with phpunit output) showing the issue.

Here is a youtube video describing it's usage:

It's usage is pretty simple too, depending on autoloading, you can get it down to two lines per test.

Prefered Way: Use an IDE that has a live preview functionality.

Set your base path to say:  &lt;-- You'll need to create this. In index.php have code that would look something like this:

```
$sot = __DIR__ . '/../../' . implode('/', $test);
if(file_exists($sot)){
    new \kcmerrill\tdd\phpwebunit('', array('bin'=>'/usr/local/php5/bin/phpunit'), array('SCRIPT_FILENAME'=>$sot));
}

```

Another Way:

```
//This will test the current php file
require_once __FILE__. '/phpwebunit';
new kcmerrill\tdd\phpwebunit;

//This will test the current php's directory
require_once __FILE__. '/phpwebunit';
new kcmerrill\tdd\phpwebunit(__DIR__);

```

Here are some screenshots: [![Screenshot](https://camo.githubusercontent.com/bc32915a4b0ee00ff9bb78f262106e0c2f84d052ffe9dba5bd103cfe84034c2a/68747470733a2f2f7261772e6769746875622e636f6d2f6b636d657272696c6c2f706870776562756e69742f6d61737465722f6578616d706c65732f73637265656e73686f742e706e67)](https://camo.githubusercontent.com/bc32915a4b0ee00ff9bb78f262106e0c2f84d052ffe9dba5bd103cfe84034c2a/68747470733a2f2f7261772e6769746875622e636f6d2f6b636d657272696c6c2f706870776562756e69742f6d61737465722f6578616d706c65732f73637265656e73686f742e706e67)

[![Build Status](https://camo.githubusercontent.com/795be6b87bec0219c3addc0bc650e579661d453e377a29a0fa2d2086ecea21ae/68747470733a2f2f7472617669732d63692e6f72672f6b636d657272696c6c2f706870776562756e69742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/kcmerrill/phpwebunit)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/49dc9c4d6c28426fafef270639d15010362006d854b260ec631bf2dfe55dc68f?d=identicon)[kcmerrill](/maintainers/kcmerrill)

---

Top Contributors

[![kcmerrill](https://avatars.githubusercontent.com/u/691273?v=4)](https://github.com/kcmerrill "kcmerrill (8 commits)")

### Embed Badge

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

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

###  Alternatives

[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3309.4M1.2k](/packages/szepeviktor-phpstan-wordpress)[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14228.7M340](/packages/dms-phpunit-arraysubset-asserts)[jasonmccreary/laravel-test-assertions

A set of helpful assertions when testing Laravel applications.

3524.1M38](/packages/jasonmccreary-laravel-test-assertions)[orchestra/workbench

Workbench Companion for Laravel Packages Development

8219.1M67](/packages/orchestra-workbench)[soyuka/contexts

Behatch contexts

282.2M21](/packages/soyuka-contexts)[roquie/laravel-dusk-select2

Select2.js support for the Laravel Dusk testing.

41356.2k5](/packages/roquie-laravel-dusk-select2)

PHPackages © 2026

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