Registry / testing / timacdonald-log-fake

timacdonald-log-fake

JSON →
library2.4.2phppackagistunverified

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

composer require timacdonald/log-fake
INSTALL
IMPORT
SIG · TIMACDONALD-LOG-FA
T
timacdonald-log-fake
testingphpv2.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LogFake
✓ use TiMacDonald\Log\LogFake;

Fake logger for testing log assertions in Laravel.

use TiMacDonald\Log\LogFake; $logFake = new LogFake(); $logFake->info('Test message'); $logFake->assertLogged('info', 'Test message');
Debug
Known issues
gotchaOnly works with Laravel's logging system, not standalone.
fix
Ensure you are using Laravel's Log facade or logger.
affects: all
Upgrade
Version history
2.4.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
38
Resources
timacdonald-log-fake — pip install timacdonald-log-fake · libregistry