PHPackages                             yidas/phpunit-sample - 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. yidas/phpunit-sample

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

yidas/phpunit-sample
====================

The demonstration of PHPUnit

1.1.0(8y ago)0481MITPHP

Since Apr 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/yidas/phpunit-sample)[ Packagist](https://packagist.org/packages/yidas/phpunit-sample)[ Docs](https://github.com/yidas/phpunit-sample)[ RSS](/packages/yidas-phpunit-sample/feed)WikiDiscussions master Synced 2mo ago

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

PHPUnit Sample Code
===================

[](#phpunit-sample-code)

The demonstration of PHPUnit

INSTALLATION
------------

[](#installation)

Create the project by Composer:

```
composer create-project --prefer-dist --stability=dev yidas/phpunit-sample

```

USAGE
-----

[](#usage)

In the root directory of this library, run `phpunit` from vendor:

```
./vendor/bin/phpunit

```

Then the result would like:

```
PHPUnit 5.6.4 by Sebastian Bergmann and contributors.

...                                                                 3 / 3 (100%)

Time: 32 ms, Memory: 3.50MB

OK (3 tests, 3 assertions)

```

DIRECTORY STRUCTURE
-------------------

[](#directory-structure)

```
src/      Source component classes
tests/    Test cases

```

DOCUMENTATION
-------------

[](#documentation)

- [Getting Started with PHPUnit 5](https://phpunit.de/getting-started/phpunit-5.html)
- [PHPUnit APPENDIX - 3. The XML Configuration File](https://phpunit.readthedocs.io/en/7.1/configuration.html)
- [PHPUnit APPENDIX - 1. Assertions](https://phpunit.readthedocs.io/en/7.1/assertions.html)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

2939d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b30d2b2c0b53aef65fad4af56cd3c7912d3db2b612890c706fe79448717f6aba?d=identicon)[yidas](/maintainers/yidas)

---

Top Contributors

[![yidas](https://avatars.githubusercontent.com/u/12604195?v=4)](https://github.com/yidas "yidas (6 commits)")

---

Tags

phpunitunit testsampletest-driven-development

### Embed Badge

![Health badge](/badges/yidas-phpunit-sample/health.svg)

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

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1468.1M72](/packages/ergebnis-phpunit-slow-test-detector)[yidas/codeigniter-phpunit

CodeIgniter 3 PHPUnit Test extension library

1692.9k2](/packages/yidas-codeigniter-phpunit)[robiningelbrecht/phpunit-pretty-print

Prettify PHPUnit output

76460.0k15](/packages/robiningelbrecht-phpunit-pretty-print)[juampi92/test-seo

Easy way to test your SEO

26341.0k](/packages/juampi92-test-seo)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

1783.0k34](/packages/robiningelbrecht-phpunit-coverage-tools)

PHPackages © 2026

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