Skip to content
Permalink
Browse files

Fix failing tests.

rawurlencode() and urlencode() handle utf8 differently.
  • Loading branch information...
markstory committed Feb 18, 2012
1 parent 0ea00c5 commit fce70df6ff26da0b63fa342e024f524faed18213
@@ -1121,7 +1121,7 @@ public function testGetParamsWithDot() {
public function testGetParamWithUrlencodedElement() {
$_GET['/posts/add/∂∂'] = '';
$_SERVER['PHP_SELF'] = '/cake_dev/app/webroot/index.php';
$_SERVER['REQUEST_URI'] = '/cake_dev/posts/add/%2202%2202';
$_SERVER['REQUEST_URI'] = '/cake_dev/posts/add/%E2%88%82%E2%88%82';
$request = new CakeRequest();
$this->assertEquals(array(), $request->query);
@@ -519,7 +519,12 @@ public function testParseUrlDecodeElements() {
array('action' => 'view')
);
$route->compile();
$result = $route->parse('/posts/%2202%2202');
$result = $route->parse('/posts/%E2%88%82%E2%88%82');
$this->assertEquals($result['controller'], 'posts');
$this->assertEquals($result['action'], 'view');
$this->assertEquals($result['slug'], '∂∂');
$result = $route->parse('/posts/∂∂');
$this->assertEquals($result['controller'], 'posts');
$this->assertEquals($result['action'], 'view');
$this->assertEquals($result['slug'], '∂∂');

0 comments on commit fce70df

Please sign in to comment.
You can’t perform that action at this time.