From c7a1a504d5abb9676164f9f9edb0436cd09a610a Mon Sep 17 00:00:00 2001 From: Hannes Papenberg Date: Fri, 13 Nov 2026 00:09:46 +0100 Subject: [PATCH] Read the fixture in GistsTest::testCreateGistFromFile() The test built the expected content with PHP_EOL, while the fixture's line ending depends on how it was checked out. On Windows with an LF checkout the test failed. Compare with the fixture's content instead. Co-Authored-By: Claude Opus 5.5 --- Tests/Package/GistsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Package/GistsTest.php b/Tests/Package/GistsTest.php index 5796c5c5..64bdfdbd 100755 --- a/Tests/Package/GistsTest.php +++ b/Tests/Package/GistsTest.php @@ -87,7 +87,7 @@ public function testCreateGistFromFile() $data = json_encode( [ 'files' => [ - 'gittest' => ['content' => 'GistContent' . PHP_EOL], + 'gittest' => ['content' => file_get_contents(__DIR__ . '/../data/gittest')], ], 'public' => true, 'description' => 'This is a gist',