|
|
@ -21,49 +21,53 @@ class Framework_Text2Html extends PHPUnit_Framework_TestCase
|
|
|
|
'flowed' => false,
|
|
|
|
'flowed' => false,
|
|
|
|
'wrap' => false,
|
|
|
|
'wrap' => false,
|
|
|
|
'space' => '_', // replace UTF-8 non-breaking space for simpler testing
|
|
|
|
'space' => '_', // replace UTF-8 non-breaking space for simpler testing
|
|
|
|
|
|
|
|
'nobr_start' => '>',
|
|
|
|
|
|
|
|
'nobr_end' => '<',
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$data[] = array(" aaaa", "_aaaa", $options);
|
|
|
|
$data[] = array(" aaaa", ">_aaaa<", $options);
|
|
|
|
$data[] = array("aaaa aaaa", "aaaa_aaaa", $options);
|
|
|
|
$data[] = array("aa>aa", ">aa>aa<", $options);
|
|
|
|
$data[] = array("aaaa aaaa", "aaaa__aaaa", $options);
|
|
|
|
$data[] = array("aaaa aaaa", ">aaaa_aaaa<", $options);
|
|
|
|
$data[] = array("aaaa aaaa", "aaaa___aaaa", $options);
|
|
|
|
$data[] = array("aaaa aaaa", ">aaaa__aaaa<", $options);
|
|
|
|
$data[] = array("aaaa\taaaa", "aaaa____aaaa", $options);
|
|
|
|
$data[] = array("aaaa aaaa", ">aaaa___aaaa<", $options);
|
|
|
|
|
|
|
|
$data[] = array("aaaa\taaaa", ">aaaa____aaaa<", $options);
|
|
|
|
$data[] = array("aaaa\naaaa", "aaaa<br>aaaa", $options);
|
|
|
|
$data[] = array("aaaa\naaaa", "aaaa<br>aaaa", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>_aaaa", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>>_aaaa<", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>__aaaa", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>>__aaaa<", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>___aaaa", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>>___aaaa<", $options);
|
|
|
|
$data[] = array("\taaaa", "____aaaa", $options);
|
|
|
|
$data[] = array("\n", "<br>", $options);
|
|
|
|
|
|
|
|
$data[] = array("\taaaa", ">____aaaa<", $options);
|
|
|
|
$data[] = array("\naaaa", "<br>aaaa", $options);
|
|
|
|
$data[] = array("\naaaa", "<br>aaaa", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>_aaaa", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>>_aaaa<", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>__aaaa", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>>__aaaa<", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>___aaaa", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>>___aaaa<", $options);
|
|
|
|
$data[] = array("aaaa\n\nbbbb", "aaaa<br><br>bbbb", $options);
|
|
|
|
$data[] = array("aaaa\n\nbbbb", "aaaa<br><br>bbbb", $options);
|
|
|
|
$data[] = array(">aaaa \n>aaaa", "<blockquote>aaaa_<br>aaaa</blockquote>", $options);
|
|
|
|
$data[] = array(">aaaa \n>aaaa", "<blockquote>>aaaa_<<br>aaaa</blockquote>", $options);
|
|
|
|
$data[] = array(">aaaa\n>aaaa", "<blockquote>aaaa<br>aaaa</blockquote>", $options);
|
|
|
|
$data[] = array(">aaaa\n>aaaa", "<blockquote>aaaa<br>aaaa</blockquote>", $options);
|
|
|
|
$data[] = array(">aaaa \n>bbbb\ncccc dddd", "<blockquote>aaaa_<br>bbbb</blockquote>cccc_dddd", $options);
|
|
|
|
$data[] = array(">aaaa \n>bbbb\ncccc dddd", "<blockquote>>aaaa_<<br>bbbb</blockquote>>cccc_dddd<", $options);
|
|
|
|
$data[] = array("aaaa-bbbb/cccc", "aaaa\xEF\xBB\xBF-\xEF\xBB\xBFbbbb\xEF\xBB\xBF/cccc", $options);
|
|
|
|
$data[] = array("aaaa-bbbb/cccc", ">aaaa-bbbb/cccc<", $options);
|
|
|
|
|
|
|
|
|
|
|
|
$options['flowed'] = true;
|
|
|
|
$options['flowed'] = true;
|
|
|
|
|
|
|
|
|
|
|
|
$data[] = array(" aaaa", "aaaa", $options);
|
|
|
|
$data[] = array(" aaaa", "aaaa", $options);
|
|
|
|
$data[] = array("aaaa aaaa", "aaaa_aaaa", $options);
|
|
|
|
$data[] = array("aaaa aaaa", ">aaaa_aaaa<", $options);
|
|
|
|
$data[] = array("aaaa aaaa", "aaaa__aaaa", $options);
|
|
|
|
$data[] = array("aaaa aaaa", ">aaaa__aaaa<", $options);
|
|
|
|
$data[] = array("aaaa aaaa", "aaaa___aaaa", $options);
|
|
|
|
$data[] = array("aaaa aaaa", ">aaaa___aaaa<", $options);
|
|
|
|
$data[] = array("aaaa\taaaa", "aaaa____aaaa", $options);
|
|
|
|
$data[] = array("aaaa\taaaa", ">aaaa____aaaa<", $options);
|
|
|
|
$data[] = array("aaaa\naaaa", "aaaa<br>aaaa", $options);
|
|
|
|
$data[] = array("aaaa\naaaa", "aaaa<br>aaaa", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>aaaa", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>aaaa", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>_aaaa", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>>_aaaa<", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>__aaaa", $options);
|
|
|
|
$data[] = array("aaaa\n aaaa", "aaaa<br>>__aaaa<", $options);
|
|
|
|
$data[] = array("\taaaa", "____aaaa", $options);
|
|
|
|
$data[] = array("\taaaa", ">____aaaa<", $options);
|
|
|
|
$data[] = array("\naaaa", "<br>aaaa", $options);
|
|
|
|
$data[] = array("\naaaa", "<br>aaaa", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>aaaa", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>aaaa", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>_aaaa", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>>_aaaa<", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>__aaaa", $options);
|
|
|
|
$data[] = array("\n aaaa", "<br>>__aaaa<", $options);
|
|
|
|
$data[] = array("aaaa\n\nbbbb", "aaaa<br><br>bbbb", $options);
|
|
|
|
$data[] = array("aaaa\n\nbbbb", "aaaa<br><br>bbbb", $options);
|
|
|
|
$data[] = array(">aaaa \n>aaaa", "<blockquote>aaaa aaaa</blockquote>", $options);
|
|
|
|
$data[] = array(">aaaa \n>aaaa", "<blockquote>aaaa aaaa</blockquote>", $options);
|
|
|
|
$data[] = array(">aaaa\n>aaaa", "<blockquote>aaaa<br>aaaa</blockquote>", $options);
|
|
|
|
$data[] = array(">aaaa\n>aaaa", "<blockquote>aaaa<br>aaaa</blockquote>", $options);
|
|
|
|
$data[] = array(">aaaa \n>bbbb\ncccc dddd", "<blockquote>aaaa bbbb</blockquote>cccc_dddd", $options);
|
|
|
|
$data[] = array(">aaaa \n>bbbb\ncccc dddd", "<blockquote>aaaa bbbb</blockquote>>cccc_dddd<", $options);
|
|
|
|
$data[] = array(chr(0x002).chr(0x003), chr(0x002).chr(0x003), $options);
|
|
|
|
$data[] = array("\x02\x03", ">\x02\x03<", $options);
|
|
|
|
|
|
|
|
|
|
|
|
$options['flowed'] = false;
|
|
|
|
$options['flowed'] = false;
|
|
|
|
$options['wrap'] = true;
|
|
|
|
$options['wrap'] = true;
|
|
|
|