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

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

Open
belladonnaf opened this issue Aug 7, 2019 · 0 comments
Open

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

belladonnaf opened this issue Aug 7, 2019 · 0 comments

Comments

@belladonnaf
Copy link

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

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

  2. 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

  1. 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 :(

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

1 participant