Skip to content

Commit

Permalink
Make these test locale independent.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 30, 2016
1 parent 4025ff2 commit 100e489
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions framework/Spam/test/Horde/Spam/EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Horde_Spam_EmailTest extends Horde_Spam_TestBase
public function setUp()
{
parent::setUp();
setlocale(LC_ALL, 'C');
list($this->spam_header, $this->spam_body) = explode("\n\n", $this->spam, 2);
list($this->ham_header, $this->ham_body) = explode("\n\n", $this->ham, 2);
$this->ham_header = str_replace(
Expand All @@ -20,6 +21,11 @@ public function setUp()
);
}

public function tearDown()
{
setlocale(LC_ALL, '');
}

public function testReportSpamRedirect()
{
$this->_testReportSpamSuccess($this->_getHordeSpam(true, 'redirect'));
Expand Down

0 comments on commit 100e489

Please sign in to comment.