@@ -36,10 +36,12 @@ public function testTwigCodeScanner()
3636 $ scanner = new TimberScanner (Translations::create ());
3737 list ('' => $ translations ) = $ this ->initAndGetTranslations ($ scanner );
3838
39- $ this ->assertCount (8 , $ translations );
39+ $ this ->assertCount (9 , $ translations );
4040 $ this ->assertCount (0 , $ translations ->getHeaders ());
4141
4242 $ file = __DIR__ . '/assets/default-domain.po ' ;
43+ // Note: This test can fail due to `git config core.autocrlf` converting line endings to CRLF
44+ // Double check any test error output for `#Warning: Strings contain different line endings!`
4345 $ this ->assertSame (
4446 file_get_contents ($ file ),
4547 (new PoGenerator ())->generateString ($ translations ),
@@ -59,6 +61,8 @@ public function testTwigCodeScannerOtherDomains()
5961 $ this ->assertCount (1 , $ tr1 );
6062 $ this ->assertCount (1 , $ tr1 ->getHeaders ());
6163 $ file1 = __DIR__ . '/assets/text-domain1.po ' ;
64+ // Note: This test can fail due to `git config core.autocrlf` converting line endings to CRLF
65+ // Double check any test error output for `#Warning: Strings contain different line endings!`
6266 $ this ->assertSame (
6367 file_get_contents ($ file1 ),
6468 (new PoGenerator ())->generateString ($ tr1 ),
@@ -68,6 +72,8 @@ public function testTwigCodeScannerOtherDomains()
6872 $ this ->assertCount (2 , $ tr2 );
6973 $ this ->assertCount (1 , $ tr2 ->getHeaders ());
7074 $ file2 = __DIR__ . '/assets/text-domain2.po ' ;
75+ // Note: This test can fail due to `git config core.autocrlf` converting line endings to CRLF
76+ // Double check any test error output for `#Warning: Strings contain different line endings!`
7177 $ this ->assertSame (
7278 file_get_contents ($ file2 ),
7379 (new PoGenerator ())->generateString ($ tr2 ),
0 commit comments