summaryrefslogtreecommitdiff
path: root/tests/Unit/Helpers
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-07-08 01:31:59 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2019-07-08 01:58:06 +0200
commitf90ab26feedb61615bde2f94bbf5acc7e4f28342 (patch)
treebef3b8c72e27089dbef317512c4ab2d11ab34405 /tests/Unit/Helpers
parente9f157ec5ccdfae73b4c9e82c9ae7c37bcfa1513 (diff)
Moved translation helpers to sub namespace
Diffstat (limited to 'tests/Unit/Helpers')
-rw-r--r--tests/Unit/Helpers/Translation/TranslationServiceProviderTest.php (renamed from tests/Unit/Helpers/TranslationServiceProviderTest.php)8
-rw-r--r--tests/Unit/Helpers/Translation/TranslatorTest.php (renamed from tests/Unit/Helpers/TranslatorTest.php)22
2 files changed, 15 insertions, 15 deletions
diff --git a/tests/Unit/Helpers/TranslationServiceProviderTest.php b/tests/Unit/Helpers/Translation/TranslationServiceProviderTest.php
index 41c08aa5..171b5967 100644
--- a/tests/Unit/Helpers/TranslationServiceProviderTest.php
+++ b/tests/Unit/Helpers/Translation/TranslationServiceProviderTest.php
@@ -1,10 +1,10 @@
<?php
-namespace Engelsystem\Test\Unit\Helpers;
+namespace Engelsystem\Test\Unit\Helpers\Translation;
use Engelsystem\Config\Config;
-use Engelsystem\Helpers\TranslationServiceProvider;
-use Engelsystem\Helpers\Translator;
+use Engelsystem\Helpers\Translation\TranslationServiceProvider;
+use Engelsystem\Helpers\Translation\Translator;
use Engelsystem\Test\Unit\ServiceProviderTest;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\HttpFoundation\Session\Session;
@@ -12,7 +12,7 @@ use Symfony\Component\HttpFoundation\Session\Session;
class TranslationServiceProviderTest extends ServiceProviderTest
{
/**
- * @covers \Engelsystem\Helpers\TranslationServiceProvider::register()
+ * @covers \Engelsystem\Helpers\Translation\TranslationServiceProvider::register()
*/
public function testRegister()
{
diff --git a/tests/Unit/Helpers/TranslatorTest.php b/tests/Unit/Helpers/Translation/TranslatorTest.php
index 45ca769b..7e9c534c 100644
--- a/tests/Unit/Helpers/TranslatorTest.php
+++ b/tests/Unit/Helpers/Translation/TranslatorTest.php
@@ -1,8 +1,8 @@
<?php
-namespace Engelsystem\Test\Unit\Helpers;
+namespace Engelsystem\Test\Unit\Helpers\Translation;
-use Engelsystem\Helpers\Translator;
+use Engelsystem\Helpers\Translation\Translator;
use Engelsystem\Test\Unit\ServiceProviderTest;
use PHPUnit\Framework\MockObject\MockObject;
use stdClass;
@@ -10,12 +10,12 @@ use stdClass;
class TranslatorTest extends ServiceProviderTest
{
/**
- * @covers \Engelsystem\Helpers\Translator::__construct
- * @covers \Engelsystem\Helpers\Translator::getLocale
- * @covers \Engelsystem\Helpers\Translator::getLocales
- * @covers \Engelsystem\Helpers\Translator::hasLocale
- * @covers \Engelsystem\Helpers\Translator::setLocale
- * @covers \Engelsystem\Helpers\Translator::setLocales
+ * @covers \Engelsystem\Helpers\Translation\Translator::__construct
+ * @covers \Engelsystem\Helpers\Translation\Translator::getLocale
+ * @covers \Engelsystem\Helpers\Translation\Translator::getLocales
+ * @covers \Engelsystem\Helpers\Translation\Translator::hasLocale
+ * @covers \Engelsystem\Helpers\Translation\Translator::setLocale
+ * @covers \Engelsystem\Helpers\Translation\Translator::setLocales
*/
public function testInit()
{
@@ -47,8 +47,8 @@ class TranslatorTest extends ServiceProviderTest
}
/**
- * @covers \Engelsystem\Helpers\Translator::replaceText
- * @covers \Engelsystem\Helpers\Translator::translate
+ * @covers \Engelsystem\Helpers\Translation\Translator::replaceText
+ * @covers \Engelsystem\Helpers\Translation\Translator::translate
*/
public function testTranslate()
{
@@ -70,7 +70,7 @@ class TranslatorTest extends ServiceProviderTest
}
/**
- * @covers \Engelsystem\Helpers\Translator::translatePlural
+ * @covers \Engelsystem\Helpers\Translation\Translator::translatePlural
*/
public function testTranslatePlural()
{