Skip to content

Commit 01aa440

Browse files
committed
Fix indentation and whitespaces in tests
In preparation for phpGH-5074
1 parent 7fc0663 commit 01aa440

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+855
-928
lines changed

ext/ctype/tests/ctype_space_variation1.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class classA
3131

3232
// heredoc string
3333
$heredoc = <<<EOT
34-
34+
\t
3535
EOT;
3636

3737
// get a resource variable
@@ -92,7 +92,7 @@ foreach($inputs as $input) {
9292
echo "\n-- Iteration $iterator --\n";
9393
var_dump( ctype_space($input) );
9494
$iterator++;
95-
};
95+
}
9696

9797
fclose($fp);
9898

ext/dom/tests/DOMDocument_savexml_basic.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ require_once('skipif.inc');
1313
$xml = <<< EOXML
1414
<?xml version="1.0" encoding="utf-8"?>
1515
<courses>
16-
<!-- Hello World! -->
17-
<aNode>
18-
<childNode>
19-
<childlessNode />
20-
</childNode>
21-
</aNode>
16+
<!-- Hello World! -->
17+
<aNode>
18+
<childNode>
19+
<childlessNode />
20+
</childNode>
21+
</aNode>
2222
</courses>
2323
EOXML;
2424

@@ -34,5 +34,5 @@ var_dump($result == $dom->saveXML());
3434

3535
unlink($filename);
3636
--EXPECT--
37-
int(151)
37+
int(181)
3838
bool(true)

ext/dom/tests/DOMNode_cloneNode_basic.phpt

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ Simon Hughes <odbc3@hotmail.com>
1212
$xml = <<< EOXML
1313
<?xml version="1.0" encoding="ISO-8859-1"?>
1414
<courses>
15-
<course title="one">
16-
<notes>
17-
<note>c1n1</note>
18-
<note>c1n2</note>
19-
</notes>
20-
</course>
21-
<course title="two">
22-
<notes>
23-
<note>c2n1</note>
24-
<note>c2n2</note>
25-
</notes>
26-
</course>
15+
<course title="one">
16+
<notes>
17+
<note>c1n1</note>
18+
<note>c1n2</note>
19+
</notes>
20+
</course>
21+
<course title="two">
22+
<notes>
23+
<note>c2n1</note>
24+
<note>c2n2</note>
25+
</notes>
26+
</course>
2727
</courses>
2828
EOXML;
2929

@@ -75,31 +75,31 @@ for ($index = 0; $index < $children->length; $index++) {
7575
Start cloneNode test
7676
node 0
7777
Course: new title3:DOMElement
78-
~string(24) "
79-
80-
c1n1
81-
c1n2
82-
83-
"
78+
~string(57) "
79+
80+
c1n1
81+
c1n2
82+
83+
"
8484
node 1
8585
Course: two:DOMElement
86-
~string(24) "
87-
88-
c2n1
89-
c2n2
90-
91-
"
86+
~string(57) "
87+
88+
c2n1
89+
c2n2
90+
91+
"
9292
node 2
9393
Course: new title default:DOMElement
9494
~string(0) ""
9595
node 3
9696
Course: new title true:DOMElement
97-
~string(24) "
98-
99-
c1n1
100-
c1n2
101-
102-
"
97+
~string(57) "
98+
99+
c1n1
100+
c1n2
101+
102+
"
103103
node 4
104104
Course: new title false:DOMElement
105105
~string(0) ""

ext/dom/tests/DOMNode_removeChild_basic.phpt

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ Simon Hughes <odbc3@hotmail.com>
1212
$xml = <<< EOXML
1313
<?xml version="1.0" encoding="ISO-8859-1"?>
1414
<courses>
15-
<course title="one">
16-
<notes>
17-
<note>c1n1</note>
18-
<note>c1n2</note>
19-
</notes>
20-
</course>
21-
<course title="two">
22-
<notes>
23-
<note>c2n1</note>
24-
<note>c2n2</note>
25-
</notes>
26-
</course>
15+
<course title="one">
16+
<notes>
17+
<note>c1n1</note>
18+
<note>c1n2</note>
19+
</notes>
20+
</course>
21+
<course title="two">
22+
<notes>
23+
<note>c2n1</note>
24+
<note>c2n2</note>
25+
</notes>
26+
</course>
2727
</courses>
2828
EOXML;
2929

@@ -64,42 +64,42 @@ Course: no title:DOMText
6464
"
6565
node 3
6666
Course: two:DOMElement
67-
~string(24) "
68-
69-
c2n1
70-
c2n2
71-
72-
"
67+
~string(57) "
68+
69+
c2n1
70+
c2n2
71+
72+
"
7373
node 2
7474
Course: no title:DOMText
75-
~string(2) "
76-
"
75+
~string(5) "
76+
"
7777
node 1
7878
Course: one:DOMElement
79-
~string(24) "
80-
81-
c1n1
82-
c1n2
83-
84-
"
79+
~string(57) "
80+
81+
c1n1
82+
c1n2
83+
84+
"
8585
node 0
8686
Course: no title:DOMText
87-
~string(2) "
88-
"
87+
~string(5) "
88+
"
8989
after text removed it now has 2 nodes
9090
node 0
9191
Course: one:DOMElement
92-
~string(24) "
93-
94-
c1n1
95-
c1n2
96-
97-
"
92+
~string(57) "
93+
94+
c1n1
95+
c1n2
96+
97+
"
9898
node 1
9999
Course: two:DOMElement
100-
~string(24) "
101-
102-
c2n1
103-
c2n2
104-
105-
"
100+
~string(57) "
101+
102+
c2n1
103+
c2n2
104+
105+
"

ext/dom/tests/dom_comment_basic.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require_once('skipif.inc');
1010
$xml = <<< EOXML
1111
<?xml version="1.0" encoding="ISO-8859-1"?>
1212
<courses>
13-
<!-- Hello World! -->
13+
<!-- Hello World! -->
1414
</courses>
1515
EOXML;
1616

@@ -30,8 +30,8 @@ for ($index = 0; $index < $children->length; $index++) {
3030
bool(true)
3131
--- child 0 ---
3232
DOMText
33-
string(2) "
34-
"
33+
string(5) "
34+
"
3535
--- child 1 ---
3636
DOMComment
3737
string(14) " Hello World! "

ext/dom/tests/domobject_debug_handler.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Objects of DOM extension: debug info object handler.
66
<?php
77
$xml = <<<XML
88
<foo>
9-
<bar>foobar</bar>
9+
<bar>foobar</bar>
1010
</foo>
1111
XML;
1212
$d = new domdocument;
@@ -55,6 +55,6 @@ DOMDocument Object
5555
[localName] =>
5656
[baseURI] => %s
5757
[textContent] =>
58-
foobar
58+
foobar
5959

6060
)

ext/intl/tests/msgfmt_format_simple_types_numeric_strings.phpt

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ ini_set("intl.error_level", E_WARNING);
1212
//ini_set("intl.default_locale", "nl");
1313

1414
$mf = new MessageFormatter('en_US',"
15-
none {a}
16-
number {b,number}
17-
number integer {c,number,integer}
18-
number currency {d,number,currency}
19-
number percent {e,number,percent}
20-
date {f,date}
21-
time {g,time}
22-
spellout {h,spellout}
23-
ordinal {i,ordinal}
24-
duration {j,duration}
25-
");
15+
none {a}
16+
number {b,number}
17+
number integer {c,number,integer}
18+
number currency {d,number,currency}
19+
number percent {e,number,percent}
20+
date {f,date}
21+
time {g,time}
22+
spellout {h,spellout}
23+
ordinal {i,ordinal}
24+
duration {j,duration}
25+
");
2626

2727
$ex = "1336317965.5 str";
2828
var_dump($mf->format(array(
@@ -42,15 +42,15 @@ var_dump($mf->format(array(
4242
==DONE==
4343
--EXPECTF--
4444
string(%d) "
45-
none 1336317965.5 str
46-
number 1,336,317,965.5
47-
number integer 1,336,317,965
48-
number currency $1,336,317,965.50
49-
number percent 133,631,796,550%
50-
date May %d, 2012
51-
time %d:%d:05 PM
52-
spellout one billion three hundred thirty-six million three hundred seventeen thousand nine hundred sixty-five point five
53-
ordinal 1,336,317,966th
54-
duration 371,199:26:06
55-
"
45+
none 1336317965.5 str
46+
number 1,336,317,965.5
47+
number integer 1,336,317,965
48+
number currency $1,336,317,965.50
49+
number percent 133,631,796,550%
50+
date May %d, 2012
51+
time %d:%d:05 PM
52+
spellout one billion three hundred thirty-six million three hundred seventeen thousand nine hundred sixty-five point five
53+
ordinal 1,336,317,966th
54+
duration 371,199:26:06
55+
"
5656
==DONE==

ext/reflection/tests/ReflectionClass_getDocComment_001.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ opcache.save_comments=1
1010
/**
1111
1212
13-
My
13+
My
1414
Doc
15-
* Comment
15+
* Comment
1616
for A
1717
1818
* */
@@ -60,9 +60,9 @@ foreach ($classes as $class) {
6060
string(%d) "/**
6161

6262

63-
My
63+
My
6464
Doc
65-
* Comment
65+
* Comment
6666
for A
6767

6868
* */"

ext/simplexml/tests/bug38354.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Bug #38354 (Unwanted reformatting of XML when using AsXML)
77

88
$xml = simplexml_load_string(
99
'<code>
10-
<a href="javascript:alert(\'1\');"><strong>Item Two</strong></a>
10+
<a href="javascript:alert(\'1\');"><strong>Item Two</strong></a>
1111
</code>'
1212
);
1313

@@ -18,9 +18,9 @@ foreach ($xml->xpath("//*") as $element) {
1818
echo "Done\n";
1919
?>
2020
--EXPECT--
21-
string(101) "<?xml version="1.0"?>
21+
string(104) "<?xml version="1.0"?>
2222
<code>
23-
<a href="javascript:alert('1');"><strong>Item Two</strong></a>
23+
<a href="javascript:alert('1');"><strong>Item Two</strong></a>
2424
</code>
2525
"
2626
string(62) "<a href="javascript:alert('1');"><strong>Item Two</strong></a>"

ext/standard/tests/file/flock_variation.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Description: PHP supports a portable way of locking complete files
88
in an advisory way
99
*/
1010

11-
echo "*** Testing flock() fun with the various operation and
12-
wouldblock values ***\n";
11+
echo "*** Testing flock() fun with the various operation and
12+
wouldblock values ***\n";
1313

1414
$file = preg_replace("~\.phpt?$~", null, __FILE__);
1515
$fp = fopen($file, "w");
@@ -66,8 +66,8 @@ fclose($fp);
6666
echo "\n*** Done ***\n";
6767
?>
6868
--EXPECT--
69-
*** Testing flock() fun with the various operation and
70-
wouldblock values ***
69+
*** Testing flock() fun with the various operation and
70+
wouldblock values ***
7171
--- Outer iteration 0 ---
7272
bool(true)
7373
-- Inner iteration 0 in 0 --

0 commit comments

Comments
 (0)