From f8369d7d6e37248d6523fdac6e1d760fca4f1b52 Mon Sep 17 00:00:00 2001 From: Tobias Sarnowski Date: Wed, 18 Apr 2012 12:08:28 +0200 Subject: moved _testing to _test --- _test/tests/inc/safefn.test.php | 48 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 _test/tests/inc/safefn.test.php (limited to '_test/tests/inc/safefn.test.php') diff --git a/_test/tests/inc/safefn.test.php b/_test/tests/inc/safefn.test.php new file mode 100644 index 000000000..78e08fec6 --- /dev/null +++ b/_test/tests/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 From 050f8f4ddc32167e205a190eec9a60ad8f3caed5 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 1 May 2012 22:58:57 +0200 Subject: removed unecessary requiresin unit tests --- _test/tests/inc/safefn.test.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '_test/tests/inc/safefn.test.php') diff --git a/_test/tests/inc/safefn.test.php b/_test/tests/inc/safefn.test.php index 78e08fec6..175b72dfc 100644 --- a/_test/tests/inc/safefn.test.php +++ b/_test/tests/inc/safefn.test.php @@ -1,8 +1,6 @@ assertEquals(SafeFN::decode($safe),$utf8); } } - + function test2(){ $tests[] = array('совместимая','%td%ta%sy%t8%t1%td%te%t4%t8%sw%tr'); -- cgit v1.2.3