.
/**
* Tests our HTMLPurifier hacks
*
* @package core
* @subpackage lib
* @copyright 2010 Petr Skoda {@link http://skodak.org}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die();
class htmlpurifier_test extends UnitTestCase {
/**
* Tests the installation of event handlers from file
*/
function test_our_tags() {
$text = 'xxxxxxxx
';
$this->assertIdentical($text, purify_html($text));
$text = 'xxxxxx';
$this->assertIdentical($text, purify_html($text));
$text = 'xxxxxx';
$this->assertIdentical($text, purify_html($text));
$text = 'asas';
$this->assertIdentical($text, purify_html($text));
$text = 'xxxxxx';
$this->assertIdentical($text, purify_html($text));
$text = "\n\raa\rsss\nsss\r";
$this->assertIdentical($text, purify_html($text));
}
}