@@ -159,7 +159,7 @@ class DecoderTest extends TestCase
159159 */
160160 private function pointers (): array
161161 {
162- return [
162+ $ v = [
163163 ['expected ' => 0 , 'input ' => [0x20 , 0x0 ]],
164164 ['expected ' => 5 , 'input ' => [0x20 , 0x5 ]],
165165 ['expected ' => 10 , 'input ' => [0x20 , 0xa ]],
@@ -168,9 +168,14 @@ private function pointers(): array
168168 ['expected ' => 524283 , 'input ' => [0x2f , 0xf7 , 0xfb ]],
169169 ['expected ' => 526335 , 'input ' => [0x2f , 0xff , 0xff ]],
170170 ['expected ' => 134217726 , 'input ' => [0x37 , 0xf7 , 0xf7 , 0xfe ]],
171- ['expected ' => \PHP_INT_MAX < 4294967295 ? '2147483647 ' : 2147483647 , 'input ' => [0x38 , 0x7f , 0xff , 0xff , 0xff ]],
172- ['expected ' => \PHP_INT_MAX < 4294967295 ? '4294967295 ' : 4294967295 , 'input ' => [0x38 , 0xff , 0xff , 0xff , 0xff ]],
171+ ['expected ' => 2147483647 , 'input ' => [0x38 , 0x7f , 0xff , 0xff , 0xff ]],
173172 ];
173+
174+ if (\PHP_INT_MAX > 4294967295 ) {
175+ array_push ($ v , ['expected ' => 4294967295 , 'input ' => [0x38 , 0xff , 0xff , 0xff , 0xff ]]);
176+ }
177+
178+ return $ v ;
174179 }
175180
176181 /**
0 commit comments