From 7a40f4354b32809af3d0cfd6e3af0eda02ab0e0a Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 12 May 2012 17:57:41 -0700 Subject: some important stuff we'll need --- .../tests/HTMLPurifier/Strategy/CoreTest.php | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 lib/htmlpurifier/tests/HTMLPurifier/Strategy/CoreTest.php (limited to 'lib/htmlpurifier/tests/HTMLPurifier/Strategy/CoreTest.php') diff --git a/lib/htmlpurifier/tests/HTMLPurifier/Strategy/CoreTest.php b/lib/htmlpurifier/tests/HTMLPurifier/Strategy/CoreTest.php new file mode 100644 index 000000000..9bca5f60a --- /dev/null +++ b/lib/htmlpurifier/tests/HTMLPurifier/Strategy/CoreTest.php @@ -0,0 +1,45 @@ +obj = new HTMLPurifier_Strategy_Core(); + } + + function testBlankInput() { + $this->assertResult(''); + } + + function testMakeWellFormed() { + $this->assertResult( + 'Make well formed.', + 'Make well formed.' + ); + } + + function testFixNesting() { + $this->assertResult( + '
Fix nesting.
', + '
Fix nesting.
' + ); + } + + function testRemoveForeignElements() { + $this->assertResult( + 'Foreign element removal.', + 'Foreign element removal.' + ); + } + + function testFirstThree() { + $this->assertResult( + '
All three.
', + '
All three.
' + ); + } + +} + +// vim: et sw=4 sts=4 -- cgit v1.2.3