Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
herpaderpaldent authored and actions-user committed Sep 23, 2021
1 parent 74ecf2f commit 5420d0d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/Unit/Logger/RotatingFileLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,17 @@
});

afterEach(function () {

Configuration::getInstance()->logfile_location = 'logs/';
});

it('writes info log', function () {

$this->logger->log('foo');
$logfile_content = $this->root->getChild($this->logfile_name)->getContent();

expect($logfile_content)->toContain('esi-client.INFO: foo');
});

it('writes debug log', function () {

Configuration::getInstance()->logger_level = Logger::DEBUG;
$this->logger = new RotatingFileLogger;

Expand All @@ -43,15 +40,13 @@
});

it('writes warning log', function () {

$this->logger->warning('foo');
$logfile_content = $this->root->getChild($this->logfile_name)->getContent();

expect($logfile_content)->toContain('esi-client.WARNING: foo');
});

it('writes error log', function () {

$this->logger->error('foo');
$logfile_content = $this->root->getChild($this->logfile_name)->getContent();

Expand Down

0 comments on commit 5420d0d

Please sign in to comment.