From 1b5e99403f78f66163f1a5707d686ca79304f90b Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 11 Nov 2017 23:00:53 +0100 Subject: [PATCH] Basic testEnv test --- tests/LocaleManagerTest.php | 11 +++++++++++ tests/LocaleMiddlewareTest.php | 10 ---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/tests/LocaleManagerTest.php b/tests/LocaleManagerTest.php index 2808362..0e88239 100644 --- a/tests/LocaleManagerTest.php +++ b/tests/LocaleManagerTest.php @@ -86,4 +86,15 @@ class LocaleManagerTest extends TestCase $this->localeManager->unsetLocale(); $this->assertNull($this->localeManager->getLocale()); } + + /** + * Test that the environment is correctly set up. + * + * @return void + */ + public function testEnv() + { + $this->localeManager->setLocale(new Locale('foo_BAR')); + $this->assertEquals('foo_BAR', getenv('LANG')); + } } diff --git a/tests/LocaleMiddlewareTest.php b/tests/LocaleMiddlewareTest.php index 2b85619..0db9f9f 100644 --- a/tests/LocaleMiddlewareTest.php +++ b/tests/LocaleMiddlewareTest.php @@ -131,14 +131,4 @@ class LocaleMiddlewareTest extends TestCase [$this, 'assertNoHeader'] ); } - - /** - * Test that the environment is correctly set up. - * - * @return void - */ - public function testEnv() - { - $this->markTestIncomplete('We need to find a way to reliably test LC_ALL and LANG values'); - } }