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

Overview

FIG - Log Test

Testing utilities for the psr/log package that backs the 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

This package should be used only for tests.

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

=8.0.0", "psr/log": "^2.0 | ^3.0" }, "require-dev": { "fig/log-test": "^1.1" } }">
{
  "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

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

psr/log fig/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.
You might also like...
Utilities to scan PHP code and generate class maps.

composer/class-map-generator Utilities to generate class maps and scan PHP code. Installation Install the latest version with: $ composer require comp

Demo of symfony/console features to build rich command line utilities

Symfony Console Demo This project is a demonstration of symfony/console features. To run the project with Docker. With bash: docker build -t myconsole

Utilities for concurrent programming of PocketMine-MP plugins.
Utilities for concurrent programming of PocketMine-MP plugins.

Utilities for concurrent programming of PocketMine-MP plugins Overview Plugin that implements the pthreads channels and in the future, promises (which

Utilities for the Contentful Rich Text

rich-text.php This library is built to help you with the parsing and rendering of the rich text field type in Contentful. It requires PHP 7.2 and up o

TEC UTilities (or tut) are a collection of tools for managing plugins.

TEC Utilities TEC UTilities (or tut) are a collection of tools for managing plugins. /^\ L L /

A collection of useful codes and utilities for WordPress plugin development..

WordPress Utils A collection of useful codes and utilities for WordPress plugin development. These simplifies common tasks and promote code reusabilit

A collection of command-line utilities to aid in debugging browser engines.

Browser debug utilities This project contains several scripts that make the process of debugging browser engines much easier (some special cases excep

Magento extension which makes it impossible for a customer to log in until the account has been activated by the administrator.

This Magento 1 extension is orphaned, unsupported and no longer maintained. If you use it, you are effectively adopting the code for your own project.

Magento 2 module to log to Sentry
Magento 2 module to log to Sentry

Magento 2 Sentry Logger This Magento 2 module integrates the Sentry sdk into magento 2. Depending on the log level configured in the backend of magent

Comments
  • v1.1 - import classes from psr/log 1.1, compatible with psr/log 2.0 and 3.0

    v1.1 - import classes from psr/log 1.1, compatible with psr/log 2.0 and 3.0

    Import https://github.com/php-fig/log-util/pull/6 to fix https://github.com/php-fig/log-test/issues/1

    • Fix compatibility with PHPUnit and psr/log 3.0
    • Modernize code for PHP 8.0
    • Materialize magical methods from TestLogger::__call
    opened by GromNaN 4
  • Deal with php-fig/log-util#4 and php-fig/log-util#6

    Deal with php-fig/log-util#4 and php-fig/log-util#6

    Now that the new repo is created, follow-up tasks are required.

    A two-week voting process on release of version 1.0 of fig/log-test has been started and looks promising. This would accompany the psr/log 1.1 package.

    Once this is actually release, we need to deal with

    php-fig/log-util#4 - Issue on Setup strategy by @GromNaN and php-fig/log-util#6 - v1.1 - Pull Request on "import classes from psr/log 1.1, compatible with psr/log 2.0 and 3.0" also by @GromNaN.

    @GromNaN would you like to re-do your PR against this Repo or should I try to piece together the necessary delta? Sorry for making you wait so long.

    opened by ralflang 1
Releases(1.1.0)
  • 1.1.0(Oct 18, 2022)

  • 1.0.0(Sep 7, 2022)

    [1.0.0] - 2022-09-07

    Changed

    • Compatible with PHP 7.4 and 8.x. Dropped support for lower versions as Test class is marked @requires PHP 7.4
    • Initial release. This ports the test for and from [psr/log v1.1][], according to [decision][1]. [psr/log]: https://packagist.org/packages/psr/log [1]: https://github.com/php-fig/log/pull/76#issuecomment-858743302
    Source code(tar.gz)
    Source code(zip)
Owner
PHP-FIG
PHP-FIG
This is an implementation of PSR specification. It allows you to send and consume message with Redis store as a broker.

This is an implementation of PSR specification. It allows you to send and consume message with Redis store as a broker.

Enqueue 35 Nov 4, 2022
A small, modern, PSR-7 compatible PSR-17 and PSR-18 network library for PHP, inspired by Go's net package.

Net A small, modern, PSR-7 compatible PSR-17 and PSR-18 network library for PHP, inspired by Go's net package. Features: No hard dependencies; Favours

Minibase 16 Jun 7, 2022
A small, modern, PSR-7 compatible PSR-17 and PSR-18 network library for PHP, inspired by Go's net package.

Net A small, modern, PSR-7 compatible PSR-17 and PSR-18 network library for PHP, inspired by Go's net package. Features: No hard dependencies; Favours

Minibase 16 Jun 7, 2022
Sends log messages to the Logentries log management service

Phalcon Logentries Phalcon library to connect and make log entries using Logentries. You can adapt it to your own needs or improve it if you want. Ple

Phalcon Orphanage 10 Apr 15, 2019
A set of utilities for working with vk api!

vk-utils Документация на русском языке Installation composer require labile/vk-utils How to use it? Simple example use Astaroth\VkUtils\Client; $api

null 1 Jan 3, 2022
Open-source library used in Gigadrive projects with common PHP utilities

PHP Commons This library provides PHP utilities used in Gigadrive projects, provided for the open-source community. Functions are registered globally

Gigadrive UG 3 Nov 10, 2021
This is php utilities

PHP-UTILITY This is php utilities. Requirements PHP >= 7.4 Curl extension for PHP7 must be enabled. Download Using Composer From your project director

null 2 Aug 28, 2022
Magento-bulk - Bulk Import/Export helper scripts and CLI utilities for Magento Commerce

Magento Bulk Bulk operations for Magento. Configuration Copy config.php.sample to config.php and edit it. Product Attribute Management List All Attrib

Bippo Indonesia 23 Dec 20, 2022
This library provides a collection of native enum utilities (traits) which you almost always need in every PHP project.

This library provides a collection of native enum utilities (traits) which you almost always need in every PHP project.

DIVE 20 Nov 11, 2022