0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
lib
/
test
/
TikiLib
/
[
Home
]
File: UrlEncodeAccentTest.php
<?php // (c) Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: UrlEncodeAccentTest.php 53803 2015-02-06 00:42:50Z jyhem $ /** * @group integration */ class TikiLib_UrlEncodeAccentTest extends PHPUnit_Framework_TestCase { protected function setUp() { $this->tikilib = TikiLib::lib('tiki'); } public function testUrlEncodeAccent_shouldNotChangeValidUrlString() { $str = 'SomeString'; $this->assertEquals($str, $this->tikilib->urlencode_accent($str)); } public function testUrlEncodeAccent_shouldChangeStringWithInvalidCharactersForUrl() { $str = 'http://tiki.org/Página en español'; $modifedString = 'http://tiki.org/P%C3%A1gina%20en%20espa%C3%B1ol'; $this->assertEquals($modifedString, $this->tikilib->urlencode_accent($str)); } }