Skip to content

Commit

Permalink
#4049 Fix tests for assertFileEqualsCanonicalizing
Browse files Browse the repository at this point in the history
  • Loading branch information
pwsdotru authored and sebastianbergmann committed Jan 13, 2024
1 parent df5a404 commit 79a8d46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/_files/bar.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Test for compare file
Voulez-vous un café?
2 changes: 1 addition & 1 deletion tests/_files/foo.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Test file for compare
Voulez-vous un café?
3 changes: 3 additions & 0 deletions tests/unit/Framework/AssertTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,9 @@ public function testAssertStringNotMatchesFormatFile(): void

public function testAssertFileEqualsCanonicalizing(): void
{
//Check that files is not equal by simple compare
$this->assertFileNotEquals(TEST_FILES_PATH . 'foo.txt', TEST_FILES_PATH . 'bar.txt');

$this->assertFileEqualsCanonicalizing(TEST_FILES_PATH . 'foo.txt', TEST_FILES_PATH . 'foo.txt');

$this->assertFileEqualsCanonicalizing(TEST_FILES_PATH . 'foo.txt', TEST_FILES_PATH . 'bar.txt');
Expand Down

0 comments on commit 79a8d46

Please sign in to comment.