70 Commits

Author SHA1 Message Date
Gregory Oschwald
b937674e7f Work around gmp_pow behavior change 2024-11-14 14:05:39 -08:00
Gregory Oschwald
7297c4f7be Improve the type hints for arrays 2024-11-14 10:19:44 -08:00
Gregory Oschwald
20be183af0 Improve exception when user tries to open dir 2024-10-09 15:10:56 -07:00
Gregory Oschwald
4bcaa933a0 Run latest version of php-cs-fixer 2024-06-17 07:27:09 -07:00
Gregory Oschwald
f449f21a8b Fix incorrect test namespace 2023-12-01 14:43:18 -08:00
Gregory Oschwald
e714388c2a Remove unnecessary ignore 2022-11-07 08:25:21 -08:00
Gregory Oschwald
a82814065c Run new php-cs-linter against code 2022-11-07 08:21:33 -08:00
Gregory Oschwald
3132b752f6 Run latest php-cs-fixer against code 2022-10-17 09:01:22 -07:00
Gregory Oschwald
9470017d09 Run latest version of php-cs-fixer
This makes our hex value capitalization consistent. It appears we
previously used both upper and lower case.
2021-10-11 15:04:34 -07:00
Gregory Oschwald
61765752e2 Test metadata pointers 2021-06-01 10:35:52 -07:00
Gregory Oschwald
4bb248f15a Update test data 2021-06-01 10:32:47 -07:00
Gregory Oschwald
db7b83a2a6 Remove vestigial code and improve check
This code didn't make sense given that we couldn't use an integer
bigger than PHP_INT_MAX when reading from the file. I suspect we used to
inline more of the actual decoding of the value.
2021-04-14 09:44:56 -07:00
Gregory Oschwald
a247437a0c Make integers up to PHP_INT_MAX real integers. Closes #119 2021-02-09 08:30:53 -08:00
Gregory Oschwald
9319f74d97 Enable new php-cs-fixer rules 2021-01-19 08:26:55 -08:00
Gregory Oschwald
d51e21299a Run new php-cs-fixer 2021-01-19 07:49:12 -08:00
Gregory Oschwald
0ddcfbb029 Remove unreachable return 2021-01-15 14:47:46 -08:00
Gregory Oschwald
2afdf672fa Ignore some phpstan warning 2021-01-15 14:47:38 -08:00
Gregory Oschwald
817357b698 Fix some indentation 2021-01-15 14:47:00 -08:00
Gregory Oschwald
4921d33fab Add additional type hints 2021-01-15 14:46:29 -08:00
Gregory Oschwald
b5c2b2585b Pass class rather than string to ReflectionClass 2021-01-15 14:13:16 -08:00
Remi Collet
4c0a267e17 relax test for 8.0.0RC1 2020-09-30 09:31:32 +02:00
Gregory Oschwald
eefbc7cf07 Use ArgumentCountError where appropriate 2020-07-08 11:59:24 -07:00
Gregory Oschwald
f3600c0cf4 Add basic metadata class test 2020-07-08 11:59:24 -07:00
Gregory Oschwald
e85fa8783d Use short list_syntax style 2020-06-24 13:38:33 -07:00
Gregory Oschwald
9b13401eb6 Run php-cs-fixer migration aids 2020-06-24 13:38:33 -07:00
Gregory Oschwald
221e7d793b Update PHPUnit 2020-06-24 13:36:25 -07:00
Gregory Oschwald
4dc62346f8 Don't use (un)pack where chr/ord will do 2019-12-11 14:00:27 -08:00
peter279k
1614bca386 Test enhancement 2019-11-11 14:13:46 +08:00
Remi Collet
cb2eb55e21 skip test when running with extension build against old library 2019-10-01 07:30:31 -07:00
Gregory Oschwald
4a5a0e64d8 Fix new test to work with extension 2019-09-27 08:54:12 -07:00
Gregory Oschwald
f7ac2fc23c Add getWithPrefixLen method to pure PHP reader 2019-09-26 09:50:57 -07:00
Gregory Oschwald
e8d8969cb6 Run newer php-cs-fixer against code 2019-09-24 12:19:23 -07:00
Gregory Oschwald
04d2fab5e7 Fix extension for large uint32 values on 32 bit machines
This also updates the extension to return an integer for uint64 values that are
less than LONG_MAX.

Closes #79.
2019-01-03 14:19:24 -08:00
Gregory Oschwald
433544639d Improve preformance of pointer decoding 2018-11-16 12:02:08 -08:00
Gregory Oschwald
d0c4b2410d Integer handling fixes for 32 bit machines
Previously, we would overflow in a number of cases.

This is not intended to be the final version. This is just enough to get
it working. This is messy and is likely quite slow.
2018-11-15 15:21:39 -08:00
Andy Jack
fb50b26076 php-cs-fixer and phpcs tests run on latest php (7.2)
- commit result of `php-cs-fixer fix`
2018-09-19 16:37:11 -04:00
Michael Orlitzky
281117ce56 tests/bootstrap.php: use our autoload.php instead of composer's.
The "autoload.php" file that we ship is always present, and doesn't
require composer (or internet access) to create. That makes it a
better choice to use in the test suite; for example, the tests can be
run directly from a git clone. This commit tells the tests to use our
custom autoloader and not the one that composer would create.
2017-11-09 15:56:32 -05:00
venyii
f6f374871e Remove final keyword from C extension Reader class 2017-09-26 09:06:28 -07:00
Gregory Oschwald
4f2cfe07f4 Run php-cs-fixer
Also fix a number of tests that broke when assertEquals was
replaced with assertSame.
2017-07-06 09:10:26 -07:00
John Boehr
68e75ee457 Fix failing test on PHP7
PHP7 no longer coerces hex strings to integers
2015-07-30 13:18:50 -07:00
Gregory Oschwald
c6e07b5ab0 Prepare for 1.0.1 2015-01-12 15:15:05 -08:00
Gregory Oschwald
d89df968f6 Fix for hhvm 2014-09-10 20:05:10 -07:00
Gregory Oschwald
29e34a4130 Fix for 128-bit uint with new version of phpunit + doc clarification 2014-09-10 19:51:35 -07:00
Gregory Oschwald
09a4446038 Update tests to latest submodule version 2014-04-14 07:02:02 -07:00
Gregory Oschwald
60d615e83c Fixed remaining strlen and exception test 2014-02-20 10:19:25 -08:00
Gregory Oschwald
e4a4ef1465 Fixed for mbstring 2014-02-20 09:32:52 -08:00
Gregory Oschwald
7ab0be2a15 Doc updates and updated submodule 2013-10-21 10:28:59 -07:00
Gregory Oschwald
dcccb2b888 Tidying and minor fixes 2013-10-21 06:24:52 -07:00
Gregory Oschwald
1022010550 Updated error handling when looking up IPv6 in IPv4 DB 2013-10-15 12:26:13 -07:00
Gregory Oschwald
869ef412ea Added tests and fixes for invalid pointers.
Also made the error handling of the file reading much better.
2013-10-09 08:03:15 -07:00