Permalink
Browse files

MINOR Isolating testRaw2URL settings

  • Loading branch information...
1 parent 8281678 commit 41b51a17ceacdfd4733ef853492087931edf5290 @chillu chillu committed May 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/core/ConvertTest.php
@@ -116,10 +116,13 @@ function testJSON2Obj() {
* @todo test toASCII()
*/
function testRaw2URL() {
+ $orig = URLSegmentFilter::$default_allow_multibyte;
+ URLSegmentFilter::$default_allow_multibyte = false;
$this->assertEquals('foo', Convert::raw2url('foo'));
$this->assertEquals('foo-and-bar', Convert::raw2url('foo & bar'));
$this->assertEquals('foo-and-bar', Convert::raw2url('foo & bar!'));
$this->assertEquals('foos-bar-2', Convert::raw2url('foo\'s [bar] (2)'));
+ URLSegmentFilter::$default_allow_multibyte = $orig;
}
}

0 comments on commit 41b51a1

Please sign in to comment.