2006-08-04 03:13:04 +00:00
|
|
|
<?php
|
|
|
|
|
2006-08-05 00:30:31 +00:00
|
|
|
class HTMLPurifier_AttrDef_TextTest extends HTMLPurifier_AttrDefHarness
|
2006-08-04 03:13:04 +00:00
|
|
|
{
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-04 03:13:04 +00:00
|
|
|
function test() {
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-05 00:30:31 +00:00
|
|
|
$this->def = new HTMLPurifier_AttrDef_Text();
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-05 00:30:31 +00:00
|
|
|
$this->assertDef('This is spiffy text!');
|
2008-05-25 05:40:20 +00:00
|
|
|
$this->assertDef(" Casual\tCDATA parse\ncheck. ", 'Casual CDATA parse check.');
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-04 03:13:04 +00:00
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2006-08-04 03:13:04 +00:00
|
|
|
}
|
|
|
|
|