From 9c144e0d8217d1ef7a83c2498214308b21af749f Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Sun, 16 Sep 2018 14:16:42 -0300 Subject: Trim trailing whitespace in tests --- ext/tidy/tests/001.phpt | 2 +- ext/tidy/tests/002.phpt | 2 +- ext/tidy/tests/003.phpt | 2 +- ext/tidy/tests/004.phpt | 2 +- ext/tidy/tests/005-mb.phpt | 4 ++-- ext/tidy/tests/005.phpt | 4 ++-- ext/tidy/tests/006.phpt | 4 ++-- ext/tidy/tests/008.phpt | 2 +- ext/tidy/tests/009.phpt | 6 +++--- ext/tidy/tests/010.phpt | 2 +- ext/tidy/tests/011.phpt | 2 +- ext/tidy/tests/012.phpt | 2 +- ext/tidy/tests/014.phpt | 2 +- ext/tidy/tests/015.phpt | 2 +- ext/tidy/tests/018.phpt | 4 ++-- ext/tidy/tests/019.phpt | 2 +- ext/tidy/tests/029.phpt | 2 +- 17 files changed, 23 insertions(+), 23 deletions(-) (limited to 'ext/tidy') 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-- --FILE-- - --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() "); echo tidy_get_output($a); - + ?> --EXPECT-- 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-- --FILE-- -"); 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-- --FILE-- -'); 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-- --FILE-- - --EXPECT-- 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-- --FILE-- - --EXPECT-- 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-- --FILE-- -"); echo tidy_get_error_buffer($a); - + ?> --EXPECT-- line 1 column 1 - Warning: missing 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-- --FILE-- -"); 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-- --FILE-- -"); echo $a; - + ?> --EXPECT-- 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-- --FILE-- -", 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-- --FILE-- -"); $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("HiByeTest", 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-- testing \ 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-- testing \ 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 --FILE-- abra\0cadabra

", - array( 'show-body-only' => true, +$x = tidy_repair_string("

abra\0cadabra

", + 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(); -- cgit v1.2.1