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 2d 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 52% 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

2984d 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.5k129.9M931](/packages/brianium-paratest)[spatie/phpunit-snapshot-assertions

Snapshot testing with PHPUnit

69619.8M615](/packages/spatie-phpunit-snapshot-assertions)[lchrusciel/api-test-case

Perfect PHPUnit TestCase for JSON/XML API TDD with Symfony.

4125.9M71](/packages/lchrusciel-api-test-case)[ergebnis/phpunit-slow-test-detector

Provides facilities for detecting slow tests in phpunit/phpunit.

1499.3M98](/packages/ergebnis-phpunit-slow-test-detector)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M324](/packages/drupal-core-dev)[allure-framework/allure-phpunit

Allure PHPUnit integration

6913.4M44](/packages/allure-framework-allure-phpunit)

PHPackages © 2026

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