Skip to content

Commit c800cc4

Browse files
committed
Add more offsets
1 parent eab553e commit c800cc4

8 files changed

+24
-17
lines changed

Zend/tests/offsets/array_container_offset_behaviour.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ foreach ($offsets as $dimension) {
108108
}
109109
ob_end_clean();
110110

111-
echo "Executed $testCasesTotal tests\n";
111+
echo "Executed tests\n";
112112
if ($failures !== []) {
113113
echo "Failures:\n" . implode($failures);
114114
}
115115

116116
?>
117117
--EXPECT--
118-
Executed 21 tests
118+
Executed tests

Zend/tests/offsets/false_container_offset_behaviour.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ foreach ($offsets as $dimension) {
114114
}
115115
ob_end_clean();
116116

117-
echo "Executed $testCasesTotal tests\n";
117+
echo "Executed tests\n";
118118
if ($failures !== []) {
119119
echo "Failures:\n" . implode($failures);
120120
}
121121

122122
?>
123123
--EXPECT--
124-
Executed 21 tests
124+
Executed tests

Zend/tests/offsets/invalid_container_offset_behaviour.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ OUTPUT;
6464
}
6565
ob_end_clean();
6666

67-
echo "Executed $testCasesTotal tests\n";
67+
echo "Executed tests\n";
6868
if ($failures !== []) {
6969
echo "Failures:\n" . implode($failures);
7070
}
7171

7272
?>
7373
--EXPECT--
74-
Executed 84 tests
74+
Executed tests

Zend/tests/offsets/null_container_offset_behaviour.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ foreach ($offsets as $dimension) {
107107
}
108108
ob_end_clean();
109109

110-
echo "Executed $testCasesTotal tests\n";
110+
echo "Executed tests\n";
111111
if ($failures !== []) {
112112
echo "Failures:\n" . implode($failures);
113113
}
114114

115115
?>
116116
--EXPECT--
117-
Executed 21 tests
117+
Executed tests

Zend/tests/offsets/object_container_offset_behaviour.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ foreach ($offsets as $dimension) {
4949
}
5050
ob_end_clean();
5151

52-
echo "Executed $testCasesTotal tests\n";
52+
echo "Executed tests\n";
5353
if ($failures !== []) {
5454
echo "Failures:\n" . implode($failures);
5555
}
5656

5757
?>
5858
--EXPECT--
59-
Executed 21 tests
59+
Executed tests

Zend/tests/offsets/runtime_compile_time_offset_access.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ foreach ($containers as $container_orig) {
120120
}
121121
ob_end_clean();
122122

123-
echo "Executed $testCasesTotal tests\n";
123+
echo "Executed tests\n";
124124
if ($failures !== []) {
125125
echo "Failures:\n" . implode($failures);
126126
}
@@ -132,4 +132,4 @@ $fl = __DIR__ . DIRECTORY_SEPARATOR . 'compare_binary_offsets_temp.php';
132132
@unlink($fl);
133133
?>
134134
--EXPECT--
135-
Executed 294 tests
135+
Executed tests

Zend/tests/offsets/string_container_offset_behaviour.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ foreach ($offsets as $dimension) {
203203
}
204204
ob_end_clean();
205205

206-
echo "Executed $testCasesTotal tests\n";
206+
echo "Executed tests\n";
207207
if ($failures !== []) {
208208
echo "Failures:\n" . implode($failures);
209209
}
210210

211211
?>
212212
--EXPECT--
213-
Executed 21 tests
213+
Executed tests

Zend/tests/offsets/test_offset_helpers.inc

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,23 +136,30 @@ $offsets = [
136136
4,
137137
5.5,
138138
6.0,
139+
-12,
140+
-13.5,
141+
-14.0,
139142
//PHP_INT_MAX,
140143
//PHP_INT_MIN,
141144
PHP_INT_MAX * 2,
142145
PHP_INT_MIN * 2,
143146
INF,
147+
-INF,
144148
NAN,
145149
'string',
146150
'7',
147151
'8.5',
148152
'9.0',
149153
'2e3',
150154
'20a',
151-
' 20',
152-
'20 ',
155+
' 21',
156+
'22 ',
153157
//"9179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368",
154158
//"-9179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368",
155-
"0x14",
159+
'0x14',
160+
'-15',
161+
'-16.5',
162+
'-17.0',
156163
(string) PHP_INT_MAX * 2,
157164
(string) PHP_INT_MIN * 2,
158165
];

0 commit comments

Comments
 (0)