From: Pierre Joye Date: Wed, 7 Sep 2011 10:14:02 +0000 (+0000) Subject: - force LF (svn prop and config) X-Git-Tag: php-5.5.0alpha1~1243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e57b66393be0cac1884cf536aa367bc802c175f1;p=php - force LF (svn prop and config) --- diff --git a/ext/tidy/tests/010.phpt b/ext/tidy/tests/010.phpt index eabbc0391f..9d5ab825a0 100644 --- a/ext/tidy/tests/010.phpt +++ b/ext/tidy/tests/010.phpt @@ -4,12 +4,12 @@ Accessing root, body, html, and head nodes.. --FILE-- "); - var_dump($a->root()); - var_dump($a->body()); - var_dump($a->html()); - var_dump($a->head()); - +$a = tidy_parse_string("", array('newline' => 'LF')); +var_dump($a->root()); +var_dump($a->body()); +var_dump($a->html()); +var_dump($a->head()); + ?> --EXPECT-- object(tidyNode)#2 (8) { diff --git a/ext/tidy/tests/012.phpt b/ext/tidy/tests/012.phpt index 43fff38df5..1205812333 100644 --- a/ext/tidy/tests/012.phpt +++ b/ext/tidy/tests/012.phpt @@ -25,7 +25,7 @@ Accessing children nodes } - $a = tidy_parse_string("HiByeTest"); + $a = tidy_parse_string("HiByeTest", array('newline' => 'LF')); $html = $a->html(); dump_nodes($html); diff --git a/ext/tidy/tests/024.phpt b/ext/tidy/tests/024.phpt index f69b962aee..b09f5b4643 100644 --- a/ext/tidy/tests/024.phpt +++ b/ext/tidy/tests/024.phpt @@ -18,7 +18,8 @@ $contents = ' '; $config = array( -'new-blocklevel-tags' => 'wps:block,wps:var,wps:value' +'new-blocklevel-tags' => 'wps:block,wps:var,wps:value', +'newline' => 'LF' ); $tidy = tidy_parse_string($contents, $config, 'utf8'); diff --git a/ext/tidy/tests/025.phpt b/ext/tidy/tests/025.phpt index 631ec2e5e9..df9392eb2f 100644 --- a/ext/tidy/tests/025.phpt +++ b/ext/tidy/tests/025.phpt @@ -5,16 +5,16 @@ tidyNode tests --FILE-- '); +$tidy=tidy_parse_string('<% %>', array('newline' => 'LF')); var_dump($tidy->Root()->child[0]->isAsp()); -$tidy=tidy_parse_string('<# #>'); +$tidy=tidy_parse_string('<# #>', array('newline' => 'LF')); var_dump($tidy->Root()->child[0]->isJste()); $tidy=tidy_parse_string('text'); var_dump($tidy->Root()->child[0]->child[1]->child[0]->isText()); -$tidy=tidy_parse_string(''); +$tidy=tidy_parse_string('', array('newline' => 'LF')); $n = $tidy->Root()->child[0]->child[1]->child[0]; var_dump($n->isComment()); var_dump((string)$n);