PHPackages                             fig/log-test - 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. fig/log-test

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

fig/log-test
============

Test utilities for the psr/log package that backs the PSR-3 specification.

1.2.1(6mo ago)102.3M—5%620MITPHPPHP ^8.0CI passing

Since Sep 7Pushed 6mo ago5 watchersCompare

[ Source](https://github.com/php-fig/log-test)[ Packagist](https://packagist.org/packages/fig/log-test)[ RSS](/packages/fig-log-test/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (20)

FIG - Log Test
==============

[](#fig---log-test)

Testing utilities for the [`psr/log`](https://packagist.org/packages/psr/log) package that backs the [PSR-3](https://www.php-fig.org/psr/psr-3/) specification.

- `Psr\Log\Test\LoggerInterfaceTest` provides a base test class for ensuring compliance with the LoggerInterface.
- `Psr\Log\Test\TestLogger` is a mock class for testing purposes.

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

[](#installation)

This package should be used only for tests.

For PHP 8.0+ only, you may remove support for `psr/log: 1.x`:

```
{
  "require": {
    "php": ">=8.0.0",
    "psr/log": "^2.0 | ^3.0"
  },
  "require-dev": {
    "fig/log-test": "^1.1"
  }
}
```

If the project supports older versions of PHP:

```
{
  "require": {
    "psr/log": "^1.1.14 | ^2.0"
  },
  "require-dev": {
    "fig/log-test": "^1.0"
  }
}
```

> **Note:** In `psr/log: 3.0.0`, `Psr\Log\LoggerInterface` has union types for method arguments. Implementing this interface with PHP 7 compatibility is not possible.

Versions
--------

[](#versions)

The version of `fig/log-test` that is installed after composer dependencies resolution varies with the version of `psr/log`.

psr/logfig/log-test`^1.1.14``1.0.*`Empty package, classes a provided by `psr/log`.`^2.0|^3.0``^1.1`Imports test classes removed from `psr/log`.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance68

Regular maintenance activity

Popularity50

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

4

Last Release

188d ago

PHP version history (2 changes)1.0.0PHP ^7.4 | ^8.0

1.1.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (27 commits)")[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (16 commits)")[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (11 commits)")[![ralflang](https://avatars.githubusercontent.com/u/646976?v=4)](https://github.com/ralflang "ralflang (10 commits)")[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (7 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (3 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (1 commits)")

---

Tags

testing

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fig-log-test/health.svg)

```
[![Health](https://phpackages.com/badges/fig-log-test/health.svg)](https://phpackages.com/packages/fig-log-test)
```

###  Alternatives

[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[timacdonald/log-fake

A drop in fake logger for testing with the Laravel framework.

4235.9M56](/packages/timacdonald-log-fake)[moodlehq/moodle-plugin-ci

Helps running Moodle plugins analysis checks and tests under various CI environments.

612.6M](/packages/moodlehq-moodle-plugin-ci)[zoon/puphpeteer

A Puppeteer bridge for PHP, supporting the entire API.

204192.9k1](/packages/zoon-puphpeteer)[playwright-php/playwright

Modern PHP library for Playwright automation: browsing, scraping, screenshots, testing, and more.

7613.0k5](/packages/playwright-php-playwright)

PHPackages © 2026

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