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/common_obfuscate.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/common_obfuscate.test.php')
-rw-r--r-- | _testing/unittests/inc/common_obfuscate.test.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/_testing/unittests/inc/common_obfuscate.test.php b/_testing/unittests/inc/common_obfuscate.test.php deleted file mode 100644 index d7c947117..000000000 --- a/_testing/unittests/inc/common_obfuscate.test.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php - -require_once DOKU_INC.'inc/init.php'; -require_once DOKU_INC.'inc/common.php'; - -class common_obfuscate_test extends PHPUnit_Framework_TestCase { - - function test_none(){ - global $conf; - $conf['mailguard'] = 'none'; - $this->assertEquals(obfuscate('jon-doe@example.com'), 'jon-doe@example.com'); - } - - function test_hex(){ - global $conf; - $conf['mailguard'] = 'hex'; - $this->assertEquals(obfuscate('jon-doe@example.com'), - 'jon-doe@example.com'); - } - - function test_visible(){ - global $conf; - $conf['mailguard'] = 'visible'; - $this->assertEquals(obfuscate('jon-doe@example.com'), 'jon [dash] doe [at] example [dot] com'); - } - - -} -//Setup VIM: ex: et ts=4 : |