Skip to content

Commit 2015c7a

Browse files
committed
Fix another batch of indentation in tests
1 parent 4cbffd8 commit 2015c7a

22 files changed

+686
-758
lines changed

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/standard/tests/strings/highlight_file.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ var_dump(highlight_file('data:,<?php echo "test"; ?>'));
2020
var_dump(highlight_file('data:,<?php echo "test ?>'));
2121

2222
$data = '
23-
<?php
24-
class test {
25-
public $var = 1;
26-
private function foo() { echo "foo"; }
27-
public function bar() { var_dump(test::foo()); }
28-
}
23+
<?php
24+
class test {
25+
public $var = 1;
26+
private function foo() { echo "foo"; }
27+
public function bar() { var_dump(test::foo()); }
28+
}
2929
?>';
3030

3131
file_put_contents($filename, $data);
@@ -51,7 +51,7 @@ bool(false)
5151
</span>
5252
</code>bool(true)
5353
<code><span style="color: #000000">
54-
<br /><span style="color: #0000BB">&lt;?php&nbsp;<br />&nbsp;</span><span style="color: #007700">class&nbsp;</span><span style="color: #0000BB">test&nbsp;</span><span style="color: #007700">{&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">$var&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;function&nbsp;</span><span style="color: #0000BB">foo</span><span style="color: #007700">()&nbsp;{&nbsp;echo&nbsp;</span><span style="color: #DD0000">"foo"</span><span style="color: #007700">;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">bar</span><span style="color: #007700">()&nbsp;{&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">test</span><span style="color: #007700">::</span><span style="color: #0000BB">foo</span><span style="color: #007700">());&nbsp;}<br />&nbsp;}&nbsp;&nbsp;<br /></span><span style="color: #0000BB">?&gt;</span>
54+
<br /><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">class&nbsp;</span><span style="color: #0000BB">test&nbsp;</span><span style="color: #007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;</span><span style="color: #0000BB">$var&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;private&nbsp;function&nbsp;</span><span style="color: #0000BB">foo</span><span style="color: #007700">()&nbsp;{&nbsp;echo&nbsp;</span><span style="color: #DD0000">"foo"</span><span style="color: #007700">;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;</span><span style="color: #0000BB">bar</span><span style="color: #007700">()&nbsp;{&nbsp;</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">test</span><span style="color: #007700">::</span><span style="color: #0000BB">foo</span><span style="color: #007700">());&nbsp;}<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
5555
</span>
5656
</code>bool(true)
5757
Done

ext/standard/tests/strings/vfprintf_variation12_64bit.phpt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ echo "*** Testing vfprintf() : octal formats and non-octal values ***\n";
2020

2121
// defining array of octal formats
2222
$formats =
23-
'%o %+o %-o
24-
%lo %Lo %4o %-4o
25-
%10.4o %-10.4o %.4o
26-
%\'#2o %\'2o %\'$2o %\'_2o
27-
%3$o %4$o %1$o %2$o';
23+
'%o %+o %-o
24+
%lo %Lo %4o %-4o
25+
%10.4o %-10.4o %.4o
26+
%\'#2o %\'2o %\'$2o %\'_2o
27+
%3$o %4$o %1$o %2$o';
2828

2929
// Arrays of non octal values for the format defined in $format.
3030
// Each sub array contains non octal values which correspond to each format in $format
@@ -93,31 +93,31 @@ unlink($data_file);
9393

9494
-- Iteration 1 --
9595
2 0 12
96-
361100 o 1777777777777777775456 2322
96+
361100 o 1777777777777777775456 2322
9797

98-
30071 14 1777777777777777777764 1777777777777777416700
99-
12 361100 2 0
98+
30071 14 1777777777777777777764 1777777777777777416700
99+
12 361100 2 0
100100
-- Iteration 2 --
101101
2 1777777777777777777776 2
102-
361100 o 1777777777777720715133 57062645
102+
361100 o 1777777777777720715133 57062645
103103

104-
57060664 4475347 1777777777777721631371 1777777777777720717336
105-
2 361100 2 1777777777777777777776
104+
57060664 4475347 1777777777777721631371 1777777777777720717336
105+
2 361100 2 1777777777777777777776
106106
-- Iteration 3 --
107107
0 0 0
108-
173 o 1777777777777777777605 173
108+
173 o 1777777777777777777605 173
109109

110-
2322 0 $0 _0
111-
0 173 0 0
110+
2322 0 $0 _0
111+
0 173 0 0
112112
-- Iteration 4 --
113113
1 1 1
114-
1 o 1 1
114+
1 o 1 1
115115

116-
#1 1 $1 _1
117-
1 1 1 1
116+
#1 1 $1 _1
117+
1 1 1 1
118118
-- Iteration 5 --
119119
1 1 0
120-
1 o 0 1
120+
1 o 0 1
121121

122-
#0 1 $1 _0
123-
0 1 1 1
122+
#0 1 $1 _0
123+
0 1 1 1

0 commit comments

Comments
 (0)