summaryrefslogtreecommitdiff
path: root/ext/tidy
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tidy')
-rw-r--r--ext/tidy/tests/001.phpt2
-rw-r--r--ext/tidy/tests/002.phpt2
-rw-r--r--ext/tidy/tests/003.phpt2
-rw-r--r--ext/tidy/tests/004.phpt2
-rw-r--r--ext/tidy/tests/005-mb.phpt4
-rw-r--r--ext/tidy/tests/005.phpt4
-rw-r--r--ext/tidy/tests/006.phpt4
-rw-r--r--ext/tidy/tests/008.phpt2
-rw-r--r--ext/tidy/tests/009.phpt6
-rw-r--r--ext/tidy/tests/010.phpt2
-rw-r--r--ext/tidy/tests/011.phpt2
-rw-r--r--ext/tidy/tests/012.phpt2
-rw-r--r--ext/tidy/tests/014.phpt2
-rw-r--r--ext/tidy/tests/015.phpt2
-rw-r--r--ext/tidy/tests/018.phpt4
-rw-r--r--ext/tidy/tests/019.phpt2
-rw-r--r--ext/tidy/tests/029.phpt2
17 files changed, 23 insertions, 23 deletions
diff --git a/ext/tidy/tests/001.phpt b/ext/tidy/tests/001.phpt
index bfd3782078..277fd03f5e 100644
--- a/ext/tidy/tests/001.phpt
+++ b/ext/tidy/tests/001.phpt
@@ -3,7 +3,7 @@ Check for tidy presence
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
+<?php
echo "tidy extension is available";
?>
--EXPECT--
diff --git a/ext/tidy/tests/002.phpt b/ext/tidy/tests/002.phpt
index 89c3804b89..cd06733a2c 100644
--- a/ext/tidy/tests/002.phpt
+++ b/ext/tidy/tests/002.phpt
@@ -6,7 +6,7 @@ tidy_parse_string()
<?php
$a = tidy_parse_string("<HTML></HTML>");
echo tidy_get_output($a);
-
+
?>
--EXPECT--
<html>
diff --git a/ext/tidy/tests/003.phpt b/ext/tidy/tests/003.phpt
index 1a63d44dfd..df4cd18f5f 100644
--- a/ext/tidy/tests/003.phpt
+++ b/ext/tidy/tests/003.phpt
@@ -3,7 +3,7 @@ tidy_clean_repair()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
+<?php
$a = tidy_parse_string("<HTML></HTML>");
tidy_clean_repair($a);
diff --git a/ext/tidy/tests/004.phpt b/ext/tidy/tests/004.phpt
index 9d3cd2ef5a..0c73b6c687 100644
--- a/ext/tidy/tests/004.phpt
+++ b/ext/tidy/tests/004.phpt
@@ -3,7 +3,7 @@ tidy_diagnose()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
+<?php
$a = tidy_parse_string('<HTML></HTML>');
var_dump(tidy_diagnose($a));
echo str_replace("\r", "", tidy_get_error_buffer($a));
diff --git a/ext/tidy/tests/005-mb.phpt b/ext/tidy/tests/005-mb.phpt
index b63ec09635..1e5f021463 100644
--- a/ext/tidy/tests/005-mb.phpt
+++ b/ext/tidy/tests/005-mb.phpt
@@ -3,10 +3,10 @@ tidy_parse_file()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
+<?php
$a = tidy_parse_file(dirname(__FILE__)."/005私はガラスを食べられます.html");
echo tidy_get_output($a);
-
+
?>
--EXPECT--
<html>
diff --git a/ext/tidy/tests/005.phpt b/ext/tidy/tests/005.phpt
index 1d3a10c2ff..144a5862d4 100644
--- a/ext/tidy/tests/005.phpt
+++ b/ext/tidy/tests/005.phpt
@@ -3,10 +3,10 @@ tidy_parse_file()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
+<?php
$a = tidy_parse_file(dirname(__FILE__)."/005.html");
echo tidy_get_output($a);
-
+
?>
--EXPECT--
<html>
diff --git a/ext/tidy/tests/006.phpt b/ext/tidy/tests/006.phpt
index c826181314..3c00fb452e 100644
--- a/ext/tidy/tests/006.phpt
+++ b/ext/tidy/tests/006.phpt
@@ -3,10 +3,10 @@ Verbose tidy_get_error_buffer()
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
+<?php
$a = tidy_parse_string("<HTML><asd asdf></HTML>");
echo tidy_get_error_buffer($a);
-
+
?>
--EXPECT--
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
diff --git a/ext/tidy/tests/008.phpt b/ext/tidy/tests/008.phpt
index 150b98f560..7c1c945ba0 100644
--- a/ext/tidy/tests/008.phpt
+++ b/ext/tidy/tests/008.phpt
@@ -3,7 +3,7 @@ Accessing the error buffer via $obj->error_buf...
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
+<?php
$a = tidy_parse_string("<HTML><asd asdf></HTML>");
echo $a->errorBuffer;
?>
diff --git a/ext/tidy/tests/009.phpt b/ext/tidy/tests/009.phpt
index 02c65df7cb..d04a684e8e 100644
--- a/ext/tidy/tests/009.phpt
+++ b/ext/tidy/tests/009.phpt
@@ -3,11 +3,11 @@ tidy_doc object overloading
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
-
+<?php
+
$a = tidy_parse_string("<HTML></HTML>");
echo $a;
-
+
?>
--EXPECT--
<html>
diff --git a/ext/tidy/tests/010.phpt b/ext/tidy/tests/010.phpt
index 695e1c9ce5..42a8676ff6 100644
--- a/ext/tidy/tests/010.phpt
+++ b/ext/tidy/tests/010.phpt
@@ -3,7 +3,7 @@ Accessing root, body, html, and head nodes..
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
+<?php
$a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000></BODY></HTML>", array('newline' => 'LF'));
var_dump($a->root());
var_dump($a->body());
diff --git a/ext/tidy/tests/011.phpt b/ext/tidy/tests/011.phpt
index 2a94616759..f664c50a3e 100644
--- a/ext/tidy/tests/011.phpt
+++ b/ext/tidy/tests/011.phpt
@@ -3,7 +3,7 @@ Accessing attributes of a node
--SKIPIF--
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
-<?php
+<?php
$a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000></BODY></HTML>");
$body = $a->body();
var_dump($body->attribute);
diff --git a/ext/tidy/tests/012.phpt b/ext/tidy/tests/012.phpt
index e86aa6c45c..eae6eca44c 100644
--- a/ext/tidy/tests/012.phpt
+++ b/ext/tidy/tests/012.phpt
@@ -28,7 +28,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>", array('newline' => 'LF'));
$html = $a->html();
dump_nodes($html);
-
+
?>
--EXPECTF--
bool(true)
diff --git a/ext/tidy/tests/014.phpt b/ext/tidy/tests/014.phpt
index a391b3dc9e..a2389f0b7e 100644
--- a/ext/tidy/tests/014.phpt
+++ b/ext/tidy/tests/014.phpt
@@ -8,7 +8,7 @@ Passing configuration options through tidy_parse_string().
$tidy = tidy_parse_string($text, array('show-body-only'=>true));
tidy_clean_repair($tidy);
echo tidy_get_output($tidy);
-
+
?>
--EXPECT--
<b>testing</b> \ No newline at end of file
diff --git a/ext/tidy/tests/015.phpt b/ext/tidy/tests/015.phpt
index 03018ffa19..ae2e9d3b02 100644
--- a/ext/tidy/tests/015.phpt
+++ b/ext/tidy/tests/015.phpt
@@ -7,7 +7,7 @@ Passing configuration options through tidy_parse_file().
$tidy = tidy_parse_file(dirname(__FILE__)."/015.html", array('show-body-only'=>true));
tidy_clean_repair($tidy);
echo tidy_get_output($tidy);
-
+
?>
--EXPECT--
<b>testing</b> \ No newline at end of file
diff --git a/ext/tidy/tests/018.phpt b/ext/tidy/tests/018.phpt
index 405a46d42b..d2f1d1e0f3 100644
--- a/ext/tidy/tests/018.phpt
+++ b/ext/tidy/tests/018.phpt
@@ -4,8 +4,8 @@ binary safety
<?php if (!extension_loaded("tidy")) print "skip"; ?>
--FILE--
<?php
-$x = tidy_repair_string("<p>abra\0cadabra</p>",
- array( 'show-body-only' => true,
+$x = tidy_repair_string("<p>abra\0cadabra</p>",
+ array( 'show-body-only' => true,
'clean' => false,
'newline' => "\n")
);
diff --git a/ext/tidy/tests/019.phpt b/ext/tidy/tests/019.phpt
index 5e9c38d75a..188b8cd4e9 100644
--- a/ext/tidy/tests/019.phpt
+++ b/ext/tidy/tests/019.phpt
@@ -21,7 +21,7 @@ tidy_repair_file($a, $a, $a, $a);
echo "Done\n";
?>
---EXPECTF--
+--EXPECTF--
Warning: tidy_repair_string(): Could not load configuration file '1' in %s on line %d
Warning: tidy_repair_string(): Could not set encoding '1' in %s on line %d
diff --git a/ext/tidy/tests/029.phpt b/ext/tidy/tests/029.phpt
index 1709cd6f09..e46181f005 100644
--- a/ext/tidy/tests/029.phpt
+++ b/ext/tidy/tests/029.phpt
@@ -13,7 +13,7 @@ $inputs = array(
);
-foreach ($inputs as $input) {
+foreach ($inputs as $input) {
$t = tidy_parse_string($input);
$t->cleanRepair();