Skip to content

Commit

Permalink
Fixing usage of mb_internal_encoding so it doesn't bone group tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 25, 2010
1 parent d45788e commit 32dc4aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/all_tests.test.php
Expand Up @@ -42,14 +42,14 @@ public static function suite() {
$suite->addTestFile($path . 'all_components.test.php');
$suite->addTestFile($path . 'all_configure.test.php');
$suite->addTestFile($path . 'all_controllers.test.php');
//$suite->addTestFile($path . 'all_database.test.php');
$suite->addTestFile($path . 'all_database.test.php');
$suite->addTestFile($path . 'all_helpers.test.php');
//$suite->addTestFile($path . 'all_libs.test.php');
$suite->addTestFile($path . 'all_localization.test.php');
//$suite->addTestFile($path . 'all_model.test.php');
$suite->addTestFile($path . 'all_routing.test.php');
$suite->addTestFile($path . 'all_socket.test.php');
//$suite->addTestFile($path . 'all_test.test.php');;
//$suite->addTestFile($path . 'all_test_suite.test.php');;
$suite->addTestFile($path . 'all_views.test.php');
$suite->addTestFile($path . 'all_xml.test.php');
return $suite;
Expand Down
3 changes: 3 additions & 0 deletions cake/tests/cases/libs/controller/components/email.test.php
Expand Up @@ -896,6 +896,7 @@ function test_encodeSettingInternalCharset() {
if ($this->skipIf($skip, 'Missing mb_* functions, cannot run test.')) {
return;
}
$restore = mb_internal_encoding();
mb_internal_encoding('ISO-8859-1');

$this->Controller->charset = 'UTF-8';
Expand All @@ -916,6 +917,8 @@ function test_encodeSettingInternalCharset() {

$result = mb_internal_encoding();
$this->assertEqual($result, 'ISO-8859-1');

mb_internal_encoding($restore);
}

/**
Expand Down

0 comments on commit 32dc4aa

Please sign in to comment.