Basic testEnv test

This commit is contained in:
Pierre Rudloff 2017-11-11 23:00:53 +01:00
parent c07322e160
commit 1b5e99403f
2 changed files with 11 additions and 10 deletions

View file

@ -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'));
}
}

View file

@ -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');
}
}