log-fake icon indicating copy to clipboard operation
log-fake copied to clipboard

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

Results 3 log-fake issues
Sort by recently updated
recently updated
newest added

We use Log::shareContext, but it result in Error : Call to undefined method TiMacDonald\Log\ChannelFake::shareContext() Our use case is exactly the same as the example in the Laravel manual, and we...

#### What does this PR do * Adds `shareContext` Closes #44

When running in tests something like: ```php LogFake::bind(); $this->artisan('queue:work database --queue=default --once'); Log::assertNothingLogged(); ``` i got: ```log Error: Call to undefined method TiMacDonald\Log\ChannelFake::flushSharedContext() ./vendor/timacdonald/log-fake/src/LogFake.php:222 ./vendor/laravel/framework/src/Illuminate/Queue/QueueServiceProvider.php:201 ``` it seems related to...