summaryrefslogtreecommitdiff
path: root/ext/tidy
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-09-07 10:12:04 +0000
committerPierre Joye <pajoye@php.net>2011-09-07 10:12:04 +0000
commit828cf36a7fbc1c2582c1abdf6ce7d02522587426 (patch)
treec0172dcbee58eb66f3f41442683d80b2cd887f9a /ext/tidy
parent93bc43c7ab231b1ac82ba557d5f258f6cde3705b (diff)
downloadphp-git-828cf36a7fbc1c2582c1abdf6ce7d02522587426.tar.gz
- force LF (svn prop and config)
Diffstat (limited to 'ext/tidy')
-rw-r--r--ext/tidy/tests/010.phpt12
-rw-r--r--ext/tidy/tests/012.phpt2
-rw-r--r--ext/tidy/tests/024.phpt3
-rw-r--r--ext/tidy/tests/025.phpt6
4 files changed, 12 insertions, 11 deletions
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..
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
- $a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000></BODY></HTML>");
- var_dump($a->root());
- var_dump($a->body());
- var_dump($a->html());
- var_dump($a->head());
-
+$a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000></BODY></HTML>", 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("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000><B>Hi</B><I>Bye<U>Test</U></I></BODY></HTML>");
+ $a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000><B>Hi</B><I>Bye<U>Test</U></I></BODY></HTML>", 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 = '
</wps:block>';
$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--
<?php
-$tidy=tidy_parse_string('<% %>');
+$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('<html><body>text</body></html>');
var_dump($tidy->Root()->child[0]->child[1]->child[0]->isText());
-$tidy=tidy_parse_string('<html><body><!-- comment --></body></html>');
+$tidy=tidy_parse_string('<html><body><!-- comment --></body></html>', array('newline' => 'LF'));
$n = $tidy->Root()->child[0]->child[1]->child[0];
var_dump($n->isComment());
var_dump((string)$n);