From 65a30a939c6df57cfb2c465bff30efb3aa750fe3 Mon Sep 17 00:00:00 2001 From: Dominik Eckelmann Date: Tue, 3 Apr 2012 14:57:59 +0200 Subject: transformed safefn test to phpunit --- _testing/unittests/inc/safefn.test.php | 48 ++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 _testing/unittests/inc/safefn.test.php (limited to '_testing') diff --git a/_testing/unittests/inc/safefn.test.php b/_testing/unittests/inc/safefn.test.php new file mode 100644 index 000000000..17169770b --- /dev/null +++ b/_testing/unittests/inc/safefn.test.php @@ -0,0 +1,48 @@ +assertEquals(SafeFN::encode($utf8),$safe); + $this->assertEquals(SafeFN::decode($safe),$utf8); + } + } + + function test2(){ + $tests[] = array('совместимая','%td%ta%sy%t8%t1%td%te%t4%t8%sw%tr'); + + foreach($tests as $test){ + list($utf8,$safe) = $test; + $this->assertEquals(SafeFN::decode($safe),$utf8); + } + } + +} +//Setup VIM: ex: et ts=4 : -- cgit v1.2.3