Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also clear recordsByLevel in TestLogger::reset #59

Closed
wants to merge 1 commit into from
Closed

Also clear recordsByLevel in TestLogger::reset #59

wants to merge 1 commit into from

Conversation

chpfm
Copy link

@chpfm chpfm commented Dec 13, 2018

Hi! This is the small fix for an unexpected behavior of TestLogger

$logger = new TestLogger();
$logger->error('Something went wrong');
$logger->hasRecords(LogLevel::ERROR); // true
$logger->reset(); // Expect that clear all stored messages
$logger->hasRecords(LogLevel::ERROR); // true

@Seldaek
Copy link
Collaborator

Seldaek commented Oct 25, 2019

Fixed by #63 but thanks!

@Seldaek Seldaek closed this Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants