diff options
author | Tobias Sarnowski <tobias@trustedco.de> | 2012-04-16 17:36:10 +0000 |
---|---|---|
committer | Tobias Sarnowski <tobias@trustedco.de> | 2012-04-16 17:36:10 +0000 |
commit | ae4cb5963676bdd9415f1b6652942ed462026fc5 (patch) | |
tree | 8762ec07c78dae50d3dfc183d15a438166a11855 /_testing/unittests/inc/auth_nameencode.test.php | |
parent | 1101eda89fdb3b8cc5f5fe0dc2c2ac4c1705508e (diff) | |
download | rpg-ae4cb5963676bdd9415f1b6652942ed462026fc5.tar.gz rpg-ae4cb5963676bdd9415f1b6652942ed462026fc5.tar.bz2 |
unified unit and integration tests
Diffstat (limited to '_testing/unittests/inc/auth_nameencode.test.php')
-rw-r--r-- | _testing/unittests/inc/auth_nameencode.test.php | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/_testing/unittests/inc/auth_nameencode.test.php b/_testing/unittests/inc/auth_nameencode.test.php deleted file mode 100644 index 12a333f66..000000000 --- a/_testing/unittests/inc/auth_nameencode.test.php +++ /dev/null @@ -1,50 +0,0 @@ -<?php - -require_once DOKU_INC.'inc/init.php'; -require_once DOKU_INC.'inc/auth.php'; - -class auth_nameencode_test extends PHPUnit_Framework_TestCase { - - function teardown() { - global $cache_authname; - $cache_authname = array(); - } - - function test_simple(){ - $in = 'hey$you'; - $out = 'hey%24you'; - $this->assertEquals(auth_nameencode($in),$out); - } - - function test_quote(){ - $in = 'hey"you'; - $out = 'hey%22you'; - $this->assertEquals(auth_nameencode($in),$out); - } - - function test_complex(){ - $in = 'hey $ you !$%! foo '; - $out = 'hey%20%24%20you%20%21%24%25%21%20foo%20'; - $this->assertEquals(auth_nameencode($in),$out); - } - - function test_complexutf8(){ - $in = 'häü $ yü !$%! foo '; - $out = 'häü%20%24%20yü%20%21%24%25%21%20foo%20'; - $this->assertEquals(auth_nameencode($in),$out); - } - - function test_groupskipon(){ - $in = '@hey$you'; - $out = '@hey%24you'; - $this->assertEquals(auth_nameencode($in,true),$out); - } - - function test_groupskipoff(){ - $in = '@hey$you'; - $out = '%40hey%24you'; - $this->assertEquals(auth_nameencode($in),$out); - } -} - -//Setup VIM: ex: et ts=4 : |