zerospam / laravel-gettext

Adds localization support to laravel applications using PoEdit and GNU-Gettext.
100 stars 56 forks source link

5.8 laravel is still not working. unit test result is below #36

Open belladonnaf opened 5 years ago

belladonnaf commented 5 years ago

PHPUnit 6.5.9 by Sebastian Bergmann and contributors.

.FFFFF 6 / 6 (100%)

Time: 315 ms, Memory: 20.00MB

There were 5 failures:

1) unit\TranslationTest::testFrenchTranslation Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Chaine de caractère du controlleur' +'Controller string'

TranslationTest.php:70

2) unit\TranslationTest::testFrenchTranslationReplacement Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Salut %s, comment va ?' +'Hello %s, how are you ?' TranslationTest.php:76

3) unit\TranslationTest::testFrenchTranslationPluralNone Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Il n'y a pas de pommes' +'There are no apples'

TranslationTest.php:85 4) unit\TranslationTest::testFrenchTranslationPluralOne Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Il y a une pomme' +'There is one apple'

TranslationTest.php:94

5) unit\TranslationTest::testFrenchTranslationPluralMultiple Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Il y a 5 pommes' +'There are 5 apples'

TranslationTest.php:103

FAILURES! Tests: 6, Assertions: 6, Failures: 5.

for testing , i had to adding : void

public function setUp(): void
{
    parent::setUp();
    $testConfig = include __DIR__ . '/../../config/laravel-gettext.php';

i hope it's working at 5.8 .. please help us :(