Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stichoza committed Dec 3, 2018
1 parent 6b7791e commit 302a16d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/TranslationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function setUp()
public function testTranslationEquality()
{
try {
$resultOne = GoogleTranslate::t('Hello', 'ka', 'en');
$resultOne = GoogleTranslate::trans('Hello', 'ka', 'en');
} catch (\ErrorException $e) {
$resultOne = null;
}
Expand All @@ -29,7 +29,7 @@ public function testTranslationEquality()
public function testUTF16Translation()
{
try {
$resultOne = GoogleTranslate::t('yes 👍🏽', 'de', 'en');
$resultOne = GoogleTranslate::trans('yes 👍🏽', 'de', 'en');
} catch (\ErrorException $e) {
$resultOne = null;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/UtilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function testSetOptions()
$output = str_replace("\r", '', stream_get_contents($res));
$this->assertContains('User-Agent: Foo', $output);

GoogleTranslate::t('world', 'en', null, [
GoogleTranslate::trans('world', 'en', null, [
'debug' => $res,
'headers' => [
'User-Agent' => 'Bar',
Expand Down

0 comments on commit 302a16d

Please sign in to comment.