Skip to content

Commit

Permalink
Merge pull request #4 from pavog/master
Browse files Browse the repository at this point in the history
Migrate file content checks to newer phpunit assertions
  • Loading branch information
matthi4s committed Mar 21, 2022
2 parents bd494db + 545ea21 commit 6c15810
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/tests/Log/File/PathLogFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public function testGetContent(): void
$path = __DIR__ . "/../../../data/simple.log";
$logFile = new PathLogFile($path);

$this->assertEquals(file_get_contents($path), $logFile->getContent());
$this->assertStringEqualsFile($path, $logFile->getContent());
}
}
2 changes: 1 addition & 1 deletion test/tests/Log/File/StreamLogFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public function testGetContent(): void
$streamResource = fopen($path, 'r');

$logFile = new StreamLogFile($streamResource);
$this->assertEquals(file_get_contents($path), $logFile->getContent());
$this->assertStringEqualsFile($path, $logFile->getContent());
}
}

0 comments on commit 6c15810

Please sign in to comment.