PHP Package: colinodell/psr-testlogger

A PHP library for testing PSR-3 loggers with ease using PHPUnit assertions and mocks.

Current Version: 1.3.0
Last Updated: 2023-11-29
PHP Requirement: >=7.1
Dependencies: psr/log, phpunit/phpunit
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

PSR-TestLogger is a versatile PHP library designed to simplify the testing of PSR-3 compliant loggers. It provides a set of PHPUnit assertions and mocks to streamline the process of verifying log messages, levels, and contexts. By integrating seamlessly with existing test suites, PSR-TestLogger enhances the reliability and accuracy of log-related unit tests, ensuring robust logging functionality in PHP applications.

🔗 View on GitHub

Download Latest Version: 1.3.0

Download Download v1.3.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/colinodell/psr-testlogger/1.3.0/autoload.php';

use ColinODell\PsrTestLogger\PsrTestLogger;
use ColinODell\PsrTestLogger\PsrTestLoggerAssertions;
use ColinODell\PsrTestLogger\PsrTestLoggerMock;
use Psr\Log\AbstractLogger;
use PHPUnit\Framework\TestCase;


$obj = new ColinODell\PsrTestLogger\PsrTestLogger();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.