| #
2f70db90 |
| 04-Dec-2025 |
WillForan <willforan@gmail.com> |
fix: 32bit IP tests w/string of decimal representation, overflows
Math in PHP is hard! sprintf("%.0f",0x7FFFFFFFFFFFFFFF) == sprintf("%.0f",0x7FFFFFFFFFFFFF00)
Changes * 32bit gets own version o
fix: 32bit IP tests w/string of decimal representation, overflows
Math in PHP is hard! sprintf("%.0f",0x7FFFFFFFFFFFFFFF) == sprintf("%.0f",0x7FFFFFFFFFFFFF00)
Changes * 32bit gets own version of tests where expected values are strings * decimalToBinary32 to replace `sprintf("%032b%032b"...)`, avoids overflow * overflow check in ipv4 too * refactor * partsTo64 for 32bit parts into dec value as str (bcmath) * Ip32::$b32 as class constant * condition always PHP_INT_SIZE == 4 for 32bit (instead of == 8 for 64)
show more ...
|
| #
a060f5a0 |
| 04-Dec-2025 |
WillForan <willforan@gmail.com> |
refactor(ip): PSR-12 functions
bitmask64_32 -> bitmask64On32 make_bitmask_32 -> makeBitmaskOn32 ipv6_upper_lower_32 -> ipv6UpperLowerOn32
also * uncomment working 7FFF ipv6 test a
refactor(ip): PSR-12 functions
bitmask64_32 -> bitmask64On32 make_bitmask_32 -> makeBitmaskOn32 ipv6_upper_lower_32 -> ipv6UpperLowerOn32
also * uncomment working 7FFF ipv6 test and * fix README suggested podman to use `docker://wpstaging`
show more ...
|
| #
25a70af9 |
| 20-Sep-2025 |
WillForan <willforan@gmail.com> |
fix(inc/Ip): 32bit arch compatible range check
* added docs about running tests on 32bit w/ podman. * Updated tests to use string instead of int for comparison when 32bit. * added `make_bitmask_3
fix(inc/Ip): 32bit arch compatible range check
* added docs about running tests on 32bit w/ podman. * Updated tests to use string instead of int for comparison when 32bit. * added `make_bitmask_32` and `bitmask64_32`. updated `ipInRange` to use them.
Test failing for `test_ip_to_number` ``` podman run -v $PWD/..:/dokuwiki \ --workdir /dokuwiki/_test -it \ docker://wpstaging/php:8.3-32bit \ ./vendor/bin/phpunit --verbose --stderr --filter ip_test ```
```
1) ip_test::test_ip_to_number with data set #3 ('38AF:3033:AA39:CDE3:1A46:094C...D:5300', 6, 4.084536385505709E+18, 1.8932109165344407E+18) Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'4084536385505709056' +'4084536381210742243'
/dokuwiki/_test/tests/inc/Ip.test.php:52
2) ip_test::test_ip_to_number with data set #5 ('193.53.125.7', 4, 0, 3241508103) Failed asserting that -1053459193 is identical to 3241508103.
```
show more ...
|
| #
9420a794 |
| 18-Sep-2023 |
Andreas Gohr <andi@splitbrain.org> |
updated the _test/README
|
| #
59752844 |
| 14-Jun-2016 |
Anders Sandblad <runeson@gmail.com> |
Fixed broken links to php.net and redirecting pages to php.net
|
| #
7a7b77ef |
| 30-Apr-2014 |
Andreas Gohr <gohr@cosmocode.de> |
some updates on phpunit docs and settings
|
| #
b25974c4 |
| 31-Jul-2013 |
Guy Brand <gb@unistra.fr> |
Fixed instructions on PHPunit
|
| #
f77b4d4f |
| 21-Apr-2012 |
Dominik Eckelmann <deckelmann@gmail.com> |
Note on enabling HTTPS/SSL support for php on windows
|
| #
f7161c34 |
| 20-Apr-2012 |
Andreas Gohr <andi@splitbrain.org> |
reenabled romanization test
The test can be skipped by excluding the "slow" group.
|
| #
42dcf8b1 |
| 20-Apr-2012 |
Andreas Gohr <andi@splitbrain.org> |
changed README to dokuwiki format
|
| #
12ee4774 |
| 18-Apr-2012 |
Tobias Sarnowski <tobias@trustedco.de> |
phpunit 3.6.10 is sufficient
|
| #
c931742d |
| 18-Apr-2012 |
Tobias Sarnowski <sarnowski@cosmocode.de> |
fixed content listing
|
| #
f8369d7d |
| 18-Apr-2012 |
Tobias Sarnowski <sarnowski@cosmocode.de> |
moved _testing to _test
|
| #
d59108b9 |
| 18-Apr-2012 |
Tobias Sarnowski <sarnowski@cosmocode.de> |
removed deprecated old test framework
|
| #
aac682fb |
| 02-Mar-2008 |
Guy Brand <gb@isis.u-strasbg.fr> |
Fix Unit Test
- README: test unit is under _test/ - form: use security token - form: reordered elements - pageid: playground start page (broken since ns autolinking?)
darcs-hash:20080302184514-19e2
Fix Unit Test
- README: test unit is under _test/ - form: use security token - form: reordered elements - pageid: playground start page (broken since ns autolinking?)
darcs-hash:20080302184514-19e2d-087390c75f1e60e369162219f253a7ed513ce1f6.gz
show more ...
|
| #
b73cc7dc |
| 15-Oct-2005 |
Andreas Gohr <andi@splitbrain.org> |
renamed test directory
darcs-hash:20051015114545-7ad00-561552ce7e519d81146b5cb2d28203aee7c6d2ad.gz
|