Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testMoGenerator fails #269

Closed
sdp5 opened this issue May 12, 2021 · 2 comments
Closed

testMoGenerator fails #269

sdp5 opened this issue May 12, 2021 · 2 comments

Comments

@sdp5
Copy link

sdp5 commented May 12, 2021

Not sure, why I'm getting following stack trace:

php /usr/bin/phpunit --bootstrap Gettext/autoload.php tests
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.
...............F.............................                     45 / 45 (100%)
There was 1 failure:
1) Gettext\Tests\MoGeneratorTest::testMoGenerator
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-����������������<�������\�������\�������]�������p�������������������������������&�������7����context-1�Original�context-1�Other comment�123456�Content-Type: text/plain; charset=UTF-8
+�������������������<�������\�������\�������]�������p�������������������������������&�������7�context-1�Original�context-1�Other comment�123456�Content-Type: text/plain; charset=UTF-8
 Language: gl_ES
 Plural-Forms: nplurals=2; plural=n != 1;
 X-Domain: my-domain
 X-Generator: PHP-Gettext�Orixinal�Outro comentario�12345
Gettext-5.5.4/tests/MoGeneratorTest.php:46

PHP 8.0.6-3
PHPUnit 5.7.27
php-gettext-languages 2.6.0-3

@oscarotero
Copy link
Member

Maybe it's the phpunit version?
In composer.json is required version the version 8 (https://github.com/php-gettext/Gettext/blob/master/composer.json#L25)

@sdp5
Copy link
Author

sdp5 commented May 12, 2021

Yep - worked with phpunit8

@sdp5 sdp5 closed this as completed May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants