[pLog-svn] r6834 - plog/branches/lifetype-1.2/class/test/tests/data
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Sat Feb 21 18:59:48 EST 2009
Author: jondaley
Date: 2009-02-21 18:59:48 -0500 (Sat, 21 Feb 2009)
New Revision: 6834
Modified:
plog/branches/lifetype-1.2/class/test/tests/data/textfilter_test.class.php
Log:
some more tests. I think these tests are *supposed* to fail in UTF-8 mode? (they do now, and they look like they have been failing for a long time. It would be nice if we had tests for UTF-8 stuff)
Modified: plog/branches/lifetype-1.2/class/test/tests/data/textfilter_test.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/test/tests/data/textfilter_test.class.php 2009-02-21 22:42:28 UTC (rev 6833)
+++ plog/branches/lifetype-1.2/class/test/tests/data/textfilter_test.class.php 2009-02-21 23:59:48 UTC (rev 6834)
@@ -107,6 +107,7 @@
// array with strings and the expected result, the key is the
// input and the value is the expected output, add more if needed
$tests = Array(
+ "<" => "<",
"&" => "&",
"test" => "test",
"áé" => "áé",
@@ -117,6 +118,7 @@
// check that the input is equal to the output after processing it with TextFilter::htmlDecode
$this->assertEquals( $output, TextFilter::htmlDecode( $input ), "Error htmlDecode()-ing string: $input" );
// and that htmlDecode and filterHTMLEntities are really the opposite of each other
+ $this->assertEquals( $input, Textfilter::htmlDecode( TextFilter::filterHTMLEntities( $input )));
$this->assertEquals( $output, Textfilter::htmlDecode( TextFilter::filterHTMLEntities( $output )));
}
}
More information about the pLog-svn
mailing list