diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
commit | f8d795820e780a6322e054c26c581570613c14f0 (patch) | |
tree | 99d3ae01ce564752807341c5743863b4c92513f8 /ext/tidy | |
parent | d2cb200e10ada6fa44c54a29292bb4665728fff0 (diff) | |
download | php-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz |
Reindent phpt files
Diffstat (limited to 'ext/tidy')
-rw-r--r-- | ext/tidy/tests/002.phpt | 4 | ||||
-rw-r--r-- | ext/tidy/tests/003.phpt | 6 | ||||
-rw-r--r-- | ext/tidy/tests/005-mb.phpt | 4 | ||||
-rw-r--r-- | ext/tidy/tests/005.phpt | 4 | ||||
-rw-r--r-- | ext/tidy/tests/006.phpt | 4 | ||||
-rw-r--r-- | ext/tidy/tests/007.phpt | 18 | ||||
-rw-r--r-- | ext/tidy/tests/008.phpt | 4 | ||||
-rw-r--r-- | ext/tidy/tests/009.phpt | 2 | ||||
-rw-r--r-- | ext/tidy/tests/011.phpt | 2 | ||||
-rw-r--r-- | ext/tidy/tests/012.phpt | 2 | ||||
-rw-r--r-- | ext/tidy/tests/014.phpt | 6 | ||||
-rw-r--r-- | ext/tidy/tests/015.phpt | 4 | ||||
-rw-r--r-- | ext/tidy/tests/018.phpt | 8 | ||||
-rw-r--r-- | ext/tidy/tests/029.phpt | 10 |
14 files changed, 39 insertions, 39 deletions
diff --git a/ext/tidy/tests/002.phpt b/ext/tidy/tests/002.phpt index c6092c7b94..d276cfabed 100644 --- a/ext/tidy/tests/002.phpt +++ b/ext/tidy/tests/002.phpt @@ -4,8 +4,8 @@ tidy_parse_string() <?php if (!extension_loaded("tidy")) print "skip"; ?> --FILE-- <?php - $a = tidy_parse_string("<HTML></HTML>"); - echo tidy_get_output($a); + $a = tidy_parse_string("<HTML></HTML>"); + echo tidy_get_output($a); ?> --EXPECT-- diff --git a/ext/tidy/tests/003.phpt b/ext/tidy/tests/003.phpt index df4cd18f5f..43bd6729d7 100644 --- a/ext/tidy/tests/003.phpt +++ b/ext/tidy/tests/003.phpt @@ -5,9 +5,9 @@ tidy_clean_repair() --FILE-- <?php - $a = tidy_parse_string("<HTML></HTML>"); - tidy_clean_repair($a); - echo tidy_get_output($a); + $a = tidy_parse_string("<HTML></HTML>"); + tidy_clean_repair($a); + echo tidy_get_output($a); ?> --EXPECTF-- diff --git a/ext/tidy/tests/005-mb.phpt b/ext/tidy/tests/005-mb.phpt index c7b8e20676..7fc43d9f27 100644 --- a/ext/tidy/tests/005-mb.phpt +++ b/ext/tidy/tests/005-mb.phpt @@ -4,8 +4,8 @@ tidy_parse_file() <?php if (!extension_loaded("tidy")) print "skip"; ?> --FILE-- <?php - $a = tidy_parse_file(__DIR__."/005私はガラスを食べられます.html"); - echo tidy_get_output($a); + $a = tidy_parse_file(__DIR__."/005私はガラスを食べられます.html"); + echo tidy_get_output($a); ?> --EXPECT-- diff --git a/ext/tidy/tests/005.phpt b/ext/tidy/tests/005.phpt index 49b0a2ad4d..88d906e896 100644 --- a/ext/tidy/tests/005.phpt +++ b/ext/tidy/tests/005.phpt @@ -4,8 +4,8 @@ tidy_parse_file() <?php if (!extension_loaded("tidy")) print "skip"; ?> --FILE-- <?php - $a = tidy_parse_file(__DIR__."/005.html"); - echo tidy_get_output($a); + $a = tidy_parse_file(__DIR__."/005.html"); + echo tidy_get_output($a); ?> --EXPECT-- diff --git a/ext/tidy/tests/006.phpt b/ext/tidy/tests/006.phpt index a36006f346..5ca856075d 100644 --- a/ext/tidy/tests/006.phpt +++ b/ext/tidy/tests/006.phpt @@ -4,8 +4,8 @@ Verbose tidy_get_error_buffer() <?php if (!extension_loaded("tidy")) print "skip"; ?> --FILE-- <?php - $a = tidy_parse_string("<HTML><asd asdf></HTML>"); - echo tidy_get_error_buffer($a); + $a = tidy_parse_string("<HTML><asd asdf></HTML>"); + echo tidy_get_error_buffer($a); ?> --EXPECT-- diff --git a/ext/tidy/tests/007.phpt b/ext/tidy/tests/007.phpt index bae8918625..127dcdf472 100644 --- a/ext/tidy/tests/007.phpt +++ b/ext/tidy/tests/007.phpt @@ -6,16 +6,16 @@ Verbose tidy_getopt() tidy.default_config= --FILE-- <?php - $a = new tidy(__DIR__."/007.html"); - echo "Current Value of 'tidy-mark': "; - var_dump($a->getopt("tidy-mark")); - echo "Current Value of 'error-file': "; - var_dump($a->getopt("error-file")); - echo "Current Value of 'tab-size': "; - var_dump($a->getopt("tab-size")); + $a = new tidy(__DIR__."/007.html"); + echo "Current Value of 'tidy-mark': "; + var_dump($a->getopt("tidy-mark")); + echo "Current Value of 'error-file': "; + var_dump($a->getopt("error-file")); + echo "Current Value of 'tab-size': "; + var_dump($a->getopt("tab-size")); - var_dump($a->getopt('bogus-opt')); - var_dump(tidy_getopt($a, 'non-ASCII string ')); + var_dump($a->getopt('bogus-opt')); + var_dump(tidy_getopt($a, 'non-ASCII string ')); ?> --EXPECTF-- Current Value of 'tidy-mark': bool(false) diff --git a/ext/tidy/tests/008.phpt b/ext/tidy/tests/008.phpt index 303a2f9d8a..f98f79954e 100644 --- a/ext/tidy/tests/008.phpt +++ b/ext/tidy/tests/008.phpt @@ -4,8 +4,8 @@ Accessing the error buffer via $obj->error_buf... <?php if (!extension_loaded("tidy")) print "skip"; ?> --FILE-- <?php - $a = tidy_parse_string("<HTML><asd asdf></HTML>"); - echo $a->errorBuffer; + $a = tidy_parse_string("<HTML><asd asdf></HTML>"); + echo $a->errorBuffer; ?> --EXPECT-- line 1 column 1 - Warning: missing <!DOCTYPE> declaration diff --git a/ext/tidy/tests/009.phpt b/ext/tidy/tests/009.phpt index c2bbfb9760..b3e04d805f 100644 --- a/ext/tidy/tests/009.phpt +++ b/ext/tidy/tests/009.phpt @@ -6,7 +6,7 @@ tidy_doc object overloading <?php $a = tidy_parse_string("<HTML></HTML>"); - echo $a; + echo $a; ?> --EXPECT-- diff --git a/ext/tidy/tests/011.phpt b/ext/tidy/tests/011.phpt index 56cb0aa893..f664f69ebf 100644 --- a/ext/tidy/tests/011.phpt +++ b/ext/tidy/tests/011.phpt @@ -4,7 +4,7 @@ Accessing attributes of a node <?php if (!extension_loaded("tidy")) print "skip"; ?> --FILE-- <?php - $a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000></BODY></HTML>"); + $a = tidy_parse_string("<HTML><BODY BGCOLOR=#FFFFFF ALINK=#000000></BODY></HTML>"); $body = $a->body(); var_dump($body->attribute); foreach($body->attribute as $key=>$val) { diff --git a/ext/tidy/tests/012.phpt b/ext/tidy/tests/012.phpt index eae6eca44c..0cfa3ef8c6 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>", array('newline' => 'LF')); + $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/014.phpt b/ext/tidy/tests/014.phpt index fd0d55b1fb..70f85eae37 100644 --- a/ext/tidy/tests/014.phpt +++ b/ext/tidy/tests/014.phpt @@ -5,9 +5,9 @@ Passing configuration options through tidy_parse_string(). --FILE-- <?php $text = "<B>testing</I>"; - $tidy = tidy_parse_string($text, array('show-body-only'=>true)); - tidy_clean_repair($tidy); - echo tidy_get_output($tidy); + $tidy = tidy_parse_string($text, array('show-body-only'=>true)); + tidy_clean_repair($tidy); + echo tidy_get_output($tidy); ?> --EXPECT-- diff --git a/ext/tidy/tests/015.phpt b/ext/tidy/tests/015.phpt index c5bc1dc4d3..ca00b5cb4d 100644 --- a/ext/tidy/tests/015.phpt +++ b/ext/tidy/tests/015.phpt @@ -5,8 +5,8 @@ Passing configuration options through tidy_parse_file(). --FILE-- <?php $tidy = tidy_parse_file(__DIR__."/015.html", array('show-body-only'=>true)); - tidy_clean_repair($tidy); - echo tidy_get_output($tidy); + tidy_clean_repair($tidy); + echo tidy_get_output($tidy); ?> --EXPECT-- diff --git a/ext/tidy/tests/018.phpt b/ext/tidy/tests/018.phpt index d2f1d1e0f3..761257e720 100644 --- a/ext/tidy/tests/018.phpt +++ b/ext/tidy/tests/018.phpt @@ -5,10 +5,10 @@ binary safety --FILE-- <?php $x = tidy_repair_string("<p>abra\0cadabra</p>", - array( 'show-body-only' => true, - 'clean' => false, - 'newline' => "\n") - ); + array( 'show-body-only' => true, + 'clean' => false, + 'newline' => "\n") + ); var_dump($x); ?> --EXPECT-- diff --git a/ext/tidy/tests/029.phpt b/ext/tidy/tests/029.phpt index e46181f005..f28f52fba8 100644 --- a/ext/tidy/tests/029.phpt +++ b/ext/tidy/tests/029.phpt @@ -8,16 +8,16 @@ tidy_get_body() crash // bug report taken from http://news.php.net/php.notes/130628 $inputs = array( - '<frameset > </frameset>', - '<html><frameset> </frameset> </html', + '<frameset > </frameset>', + '<html><frameset> </frameset> </html', ); foreach ($inputs as $input) { - $t = tidy_parse_string($input); - $t->cleanRepair(); - var_dump(tidy_get_body($t)); + $t = tidy_parse_string($input); + $t->cleanRepair(); + var_dump(tidy_get_body($t)); } echo "Done\n"; |