Skip to content

Commit 400ced5

Browse files
committed
testing tests v8
1 parent 9519002 commit 400ced5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/TranslatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ public function testBasedOnNumber()
2222
public function testThxText()
2323
{
2424
$translator = new Translator(dir: "./tests/locales/", lang: "en_US");
25-
$this->assertEquals('Thank you John for buying a piece of apple', $translator->locale('testValues', 'thxText', ['username' => 'John', 'product' => 'apple']));
25+
$this->assertEquals('Thank you John for buying apple', $translator->locale('testValues', 'thxText', ['username' => 'John', 'product' => 'apple']));
2626
}
2727

2828
public function testThxTextCounter()
2929
{
3030
$translator = new Translator(dir: "./tests/locales/", lang: "en_US");
3131
$this->assertEquals('Thank you John for buying a piece of apple', $translator->locale('testValues', 'thxTextCounter', ['username' => 'John', 'product' => 'apple', '_counter' => 1]));
3232
$this->assertEquals('Thank you John for buying two of apple', $translator->locale('testValues', 'thxTextCounter', ['username' => 'John', 'product' => 'apple', '_counter' => 2]));
33-
$this->assertEquals('Thank you John for buying 50 pieces of apple', $translator->locale('testValues', 'thxTextCounter', ['username' => 'John', 'product' => 'apple', '_counter' => 50]));
33+
$this->assertEquals('Thank you John for buying 50 pieces of apple', $translator->locale('testValues', 'thxTextCounter', ['username' => 'John', 'product' => 'apple', 'count' => 50 , '_counter' => 50]));
3434
}
3535
}

0 commit comments

Comments
 (0)