Skip to content

Commit 0253a23

Browse files
committed
Fix indentation/trailing whitespaces of tests
1 parent 1698057 commit 0253a23

12 files changed

+249
-249
lines changed

ext/standard/tests/strings/highlight_file.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var_dump(highlight_file('data:,<?php echo "test ?>'));
2222
$data = '
2323
<?php
2424
class test {
25-
public $var = 1;
25+
public $var = 1;
2626
private function foo() { echo "foo"; }
2727
public function bar() { var_dump(test::foo()); }
2828
}
@@ -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<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>
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">;<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
Binary file not shown.

ext/standard/tests/strings/vfprintf_variation16_64bit.phpt

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ echo "*** Testing vfprintf() : unsigned formats and signed & other types of valu
2020

2121
// defining array of unsigned formats
2222
$formats =
23-
'%u %+u %-u
24-
%lu %Lu %4u %-4u
25-
%10.4u %-10.4u %.4u
26-
%\'#2u %\'2u %\'$2u %\'_2u
27-
%3$u %4$u %1$u %2$u';
23+
'%u %+u %-u
24+
%lu %Lu %4u %-4u
25+
%10.4u %-10.4u %.4u
26+
%\'#2u %\'2u %\'$2u %\'_2u
27+
%3$u %4$u %1$u %2$u';
2828

2929
// Arrays of signed and other type of values for the format defined in $format.
3030
// Each sub array contains signed values which correspond to each format in $format
@@ -86,25 +86,25 @@ unlink($data_file);
8686

8787
-- Iteration 1 --
8888
2 0 10
89-
123456 u 1234 20000000000
90-
2000000000000 22000000000000 12345
91-
12 18446744073709551604 18446744073709428160 _3
92-
10 123456 2 0
89+
123456 u 1234 20000000000
90+
2000000000000 22000000000000 12345
91+
12 18446744073709551604 18446744073709428160 _3
92+
10 123456 2 0
9393
-- Iteration 2 --
9494
0 0 0
95-
123 u 18446744073709551493 123
96-
0 0 0
97-
1234 0 $0 _0
98-
0 123 0 0
95+
123 u 18446744073709551493 123
96+
0 0 0
97+
1234 0 $0 _0
98+
0 123 0 0
9999
-- Iteration 3 --
100100
1 1 1
101-
1 u 1 1
102-
1 1 1
103-
#1 1 $1 _1
104-
1 1 1 1
101+
1 u 1 1
102+
1 1 1
103+
#1 1 $1 _1
104+
1 1 1 1
105105
-- Iteration 4 --
106106
1 1 0
107-
1 u 0 1
108-
1 1 0
109-
#0 1 $1 _0
110-
0 1 1 1
107+
1 u 0 1
108+
1 1 0
109+
#0 1 $1 _0
110+
0 1 1 1
Binary file not shown.

ext/standard/tests/strings/vprintf_variation12_64bit.phpt

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ echo "*** Testing vprintf() : 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
@@ -83,41 +83,41 @@ foreach($args_array as $args) {
8383
*** Testing vprintf() : octal formats and non-octal values ***
8484

8585
-- Iteration 1 --
86-
2 0 12
87-
361100 o 1777777777777777775456 2322
86+
2 0 12
87+
361100 o 1777777777777777775456 2322
8888

89-
30071 14 1777777777777777777764 1777777777777777416700
90-
12 361100 2 0
91-
int(149)
89+
30071 14 1777777777777777777764 1777777777777777416700
90+
12 361100 2 0
91+
int(151)
9292

9393
-- Iteration 2 --
94-
2 1777777777777777777776 2
95-
361100 o 1777777777777720715133 57062645
94+
2 1777777777777777777776 2
95+
361100 o 1777777777777720715133 57062645
9696

97-
57060664 4475347 1777777777777721631371 1777777777777720717336
98-
2 361100 2 1777777777777777777776
99-
int(201)
97+
57060664 4475347 1777777777777721631371 1777777777777720717336
98+
2 361100 2 1777777777777777777776
99+
int(203)
100100

101101
-- Iteration 3 --
102-
0 0 0
103-
173 o 1777777777777777777605 173
102+
0 0 0
103+
173 o 1777777777777777777605 173
104104

105-
2322 0 $0 _0
106-
0 173 0 0
107-
int(99)
105+
2322 0 $0 _0
106+
0 173 0 0
107+
int(101)
108108

109109
-- Iteration 4 --
110-
1 1 1
111-
1 o 1 1
110+
1 1 1
111+
1 o 1 1
112112

113-
#1 1 $1 _1
114-
1 1 1 1
115-
int(75)
113+
#1 1 $1 _1
114+
1 1 1 1
115+
int(77)
116116

117117
-- Iteration 5 --
118-
1 1 0
119-
1 o 0 1
118+
1 1 0
119+
1 o 0 1
120120

121-
#0 1 $1 _0
122-
0 1 1 1
123-
int(75)
121+
#0 1 $1 _0
122+
0 1 1 1
123+
int(77)

ext/standard/tests/strings/vprintf_variation14_64bit.phpt

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

2121
// defining array of different hexa formats
2222
$formats =
23-
'%x %+x %-x
24-
%lx %Lx %4x %-4x
25-
%10.4x %-10.4x %.4x
26-
%\'#2x %\'2x %\'$2x %\'_2x
27-
%3$x %4$x %1$x %2$x';
23+
'%x %+x %-x
24+
%lx %Lx %4x %-4x
25+
%10.4x %-10.4x %.4x
26+
%\'#2x %\'2x %\'$2x %\'_2x
27+
%3$x %4$x %1$x %2$x';
2828

2929
// Arrays of non hexa values for the format defined in $format.
3030
// Each sub array contains non hexa values which correspond to each format in $format
@@ -84,41 +84,41 @@ foreach($args_array as $args) {
8484
*** Testing vprintf() : hexa formats and non-hexa values ***
8585

8686
-- Iteration 1 --
87-
2 0 a
88-
1e240 x fffffffffffffb2e 4d2
87+
2 0 a
88+
1e240 x fffffffffffffb2e 4d2
8989

90-
3039 c fffffffffffffff4 fffffffffffe1dc0
91-
a 1e240 2 0
92-
int(125)
90+
3039 c fffffffffffffff4 fffffffffffe1dc0
91+
a 1e240 2 0
92+
int(127)
9393

9494
-- Iteration 2 --
95-
2 fffffffffffffffe 2
96-
1e240 x ffffffffff439a5b bc65a5
95+
2 fffffffffffffffe 2
96+
1e240 x ffffffffff439a5b bc65a5
9797

98-
bc61b4 127ae7 ffffffffff4732f9 ffffffffff439ede
99-
2 1e240 2 fffffffffffffffe
100-
int(164)
98+
bc61b4 127ae7 ffffffffff4732f9 ffffffffff439ede
99+
2 1e240 2 fffffffffffffffe
100+
int(166)
101101

102102
-- Iteration 3 --
103-
0 0 0
104-
7b x ffffffffffffff85 7b
103+
0 0 0
104+
7b x ffffffffffffff85 7b
105105

106-
4d2 0 $0 _0
107-
0 7b 0 0
108-
int(90)
106+
4d2 0 $0 _0
107+
0 7b 0 0
108+
int(92)
109109

110110
-- Iteration 4 --
111-
1 1 1
112-
1 x 1 1
111+
1 1 1
112+
1 x 1 1
113113

114-
#1 1 $1 _1
115-
1 1 1 1
116-
int(75)
114+
#1 1 $1 _1
115+
1 1 1 1
116+
int(77)
117117

118118
-- Iteration 5 --
119-
1 1 0
120-
1 x 0 1
119+
1 1 0
120+
1 x 0 1
121121

122-
#0 1 $1 _0
123-
0 1 1 1
124-
int(75)
122+
#0 1 $1 _0
123+
0 1 1 1
124+
int(77)

ext/standard/tests/strings/vprintf_variation16_64bit.phpt

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ echo "*** Testing vprintf() : unsigned formats and signed & other types of value
2020

2121
// defining array of unsigned formats
2222
$formats =
23-
'%u %+u %-u
24-
%lu %Lu %4u %-4u
25-
%10.4u %-10.4u %.4u
26-
%\'#2u %\'2u %\'$2u %\'_2u
27-
%3$u %4$u %1$u %2$u';
23+
'%u %+u %-u
24+
%lu %Lu %4u %-4u
25+
%10.4u %-10.4u %.4u
26+
%\'#2u %\'2u %\'$2u %\'_2u
27+
%3$u %4$u %1$u %2$u';
2828

2929
// Arrays of signed and other type of values for the format defined in $format.
3030
// Each sub array contains signed values which correspond to each format in $format
@@ -76,33 +76,33 @@ foreach($args_array as $args) {
7676
*** Testing vprintf() : unsigned formats and signed & other types of values ***
7777

7878
-- Iteration 1 --
79-
2 0 10
80-
123456 u 1234 20000000000
81-
2000000000000 22000000000000 12345
82-
12 18446744073709551604 18446744073709428160 _3
83-
10 123456 2 0
84-
int(143)
79+
2 0 10
80+
123456 u 1234 20000000000
81+
2000000000000 22000000000000 12345
82+
12 18446744073709551604 18446744073709428160 _3
83+
10 123456 2 0
84+
int(145)
8585

8686
-- Iteration 2 --
87-
0 0 0
88-
123 u 18446744073709551493 123
89-
0 0 0
90-
1234 0 $0 _0
91-
0 123 0 0
92-
int(98)
87+
0 0 0
88+
123 u 18446744073709551493 123
89+
0 0 0
90+
1234 0 $0 _0
91+
0 123 0 0
92+
int(100)
9393

9494
-- Iteration 3 --
95-
1 1 1
96-
1 u 1 1
97-
1 1 1
98-
#1 1 $1 _1
99-
1 1 1 1
100-
int(76)
95+
1 1 1
96+
1 u 1 1
97+
1 1 1
98+
#1 1 $1 _1
99+
1 1 1 1
100+
int(78)
101101

102102
-- Iteration 4 --
103-
1 1 0
104-
1 u 0 1
105-
1 1 0
106-
#0 1 $1 _0
107-
0 1 1 1
108-
int(76)
103+
1 1 0
104+
1 u 0 1
105+
1 1 0
106+
#0 1 $1 _0
107+
0 1 1 1
108+
int(78)

ext/standard/tests/strings/vprintf_variation18.phpt

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ echo "*** Testing vprintf() : scientific formats and non-scientific values ***\n
1616

1717
// defining array of non-scientific formats
1818
$formats =
19-
'%e %+e %-e
20-
%le %Le %4e %-4e
21-
%10.4e %-10.4e %04e %04.4e
22-
%\'#2e %\'2e %\'$2e %\'_2e
23-
%3$e %4$e %1$e %2$e';
19+
'%e %+e %-e
20+
%le %Le %4e %-4e
21+
%10.4e %-10.4e %04e %04.4e
22+
%\'#2e %\'2e %\'$2e %\'_2e
23+
%3$e %4$e %1$e %2$e';
2424

2525
// Arrays of non scientific values for the format defined in $format.
2626
// Each sub array contains non scientific values which correspond to each format in $format
@@ -72,33 +72,33 @@ foreach($args_array as $args) {
7272
*** Testing vprintf() : scientific formats and non-scientific values ***
7373

7474
-- Iteration 1 --
75-
2.200000e+0 +2.000000e-1 1.020000e+1
76-
1.234562e+5 e -1.234679e+3 1.234679e+3
77-
2.0000e+1 2.1220e+2 -4.110000e+11 2.2120e+3
78-
1.234578e+4 1.200000e+1 -1.200000e+1 -1.234562e+5
79-
1.020000e+1 1.234562e+5 2.200000e+0 2.000000e-1
80-
int(232)
75+
2.200000e+0 +2.000000e-1 1.020000e+1
76+
1.234562e+5 e -1.234679e+3 1.234679e+3
77+
2.0000e+1 2.1220e+2 -4.110000e+11 2.2120e+3
78+
1.234578e+4 1.200000e+1 -1.200000e+1 -1.234562e+5
79+
1.020000e+1 1.234562e+5 2.200000e+0 2.000000e-1
80+
int(235)
8181

8282
-- Iteration 2 --
83-
0.000000e+0 +0.000000e+0 0.000000e+0
84-
1.230000e+2 e -1.230000e+2 1.230000e+2
85-
0.0000e+0 0.0000e+0 1.234560e+5 0.0000e+0
86-
1.234000e+3 0.000000e+0 0.000000e+0 0.000000e+0
87-
0.000000e+0 1.230000e+2 0.000000e+0 0.000000e+0
88-
int(228)
83+
0.000000e+0 +0.000000e+0 0.000000e+0
84+
1.230000e+2 e -1.230000e+2 1.230000e+2
85+
0.0000e+0 0.0000e+0 1.234560e+5 0.0000e+0
86+
1.234000e+3 0.000000e+0 0.000000e+0 0.000000e+0
87+
0.000000e+0 1.230000e+2 0.000000e+0 0.000000e+0
88+
int(231)
8989

9090
-- Iteration 3 --
91-
1.000000e+0 +1.000000e+0 1.000000e+0
92-
1.000000e+0 e 1.000000e+0 1.000000e+0
93-
1.0000e+0 1.0000e+0 1.000000e+0 1.0000e+0
94-
1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
95-
1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
96-
int(227)
91+
1.000000e+0 +1.000000e+0 1.000000e+0
92+
1.000000e+0 e 1.000000e+0 1.000000e+0
93+
1.0000e+0 1.0000e+0 1.000000e+0 1.0000e+0
94+
1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
95+
1.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
96+
int(230)
9797

9898
-- Iteration 4 --
99-
1.000000e+0 +1.000000e+0 0.000000e+0
100-
1.000000e+0 e 0.000000e+0 1.000000e+0
101-
1.0000e+0 0.0000e+0 1.000000e+0 0.0000e+0
102-
0.000000e+0 1.000000e+0 1.000000e+0 0.000000e+0
103-
0.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
104-
int(227)
99+
1.000000e+0 +1.000000e+0 0.000000e+0
100+
1.000000e+0 e 0.000000e+0 1.000000e+0
101+
1.0000e+0 0.0000e+0 1.000000e+0 0.0000e+0
102+
0.000000e+0 1.000000e+0 1.000000e+0 0.000000e+0
103+
0.000000e+0 1.000000e+0 1.000000e+0 1.000000e+0
104+
int(230)

0 commit comments

Comments
 (0)