Skip to content

Commit

Permalink
Fix test if file is direty
Browse files Browse the repository at this point in the history
  • Loading branch information
keithbrink committed Oct 11, 2021
1 parent 28d894d commit 6168db4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Unit/AmznSPAConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public function testLogger()
$error_filepath = __DIR__.'/../error-log.txt';
touch($error_filepath);
$logger_resource = fopen($error_filepath, 'rw+');
ftruncate($logger_resource, 0);
$logger = new Logger(LogLevel::DEBUG, $logger_resource, function (string $level, string $message, array $context) {
$log = sprintf('[%s] %s', $level, $message);
if (count($context)) {
Expand Down

0 comments on commit 6168db4

Please sign in to comment.