ext-ds icon indicating copy to clipboard operation
ext-ds copied to clipboard

Running unittests fails on PHP 8.3+

Open andypost opened this issue 1 year ago • 1 comments

Packaging new 1.6.0 release for Alpinelinux faced that tests for PHP 8.3 and 8.4 fails

very probably because of PHPUnit 11/12 ref https://gist.github.com/andypost/280a059bfe467ed98839b3c5a3da9774

that's mostly deprecations like


302) Ds\Tests\VectorTest::testToArray
ArgumentCountError: Too few arguments to function Ds\Tests\VectorTest::testToArray(), 0 passed in /mnt/community/php84-pecl-ds/src/ds-1.6.0/tests/vendor/phpunit/phpunit/src/Framework/TestCase.php on line 1275 and exactly 2 expected

/mnt/community/php84-pecl-ds/src/ds-1.6.0/tests/vendor/php-ds/tests/tests/Sequence/toArray.php:14

303) Ds\Tests\VectorTest::testUnshiftVariadic
ArgumentCountError: Too few arguments to function Ds\Tests\VectorTest::testUnshiftVariadic(), 0 passed in /mnt/community/php84-pecl-ds/src/ds-1.6.0/tests/vendor/phpunit/phpunit/src/Framework/TestCase.php on line 1275 and exactly 2 expected

/mnt/community/php84-pecl-ds/src/ds-1.6.0/tests/vendor/php-ds/tests/tests/Sequence/unshift.php:14

304) Ds\Tests\VectorTest::testUnshift
ArgumentCountError: Too few arguments to function Ds\Tests\VectorTest::testUnshift(), 0 passed in /mnt/community/php84-pecl-ds/src/ds-1.6.0/tests/vendor/phpunit/phpunit/src/Framework/TestCase.php on line 1275 and exactly 2 expected

/mnt/community/php84-pecl-ds/src/ds-1.6.0/tests/vendor/php-ds/tests/tests/Sequence/unshift.php:28

ERRORS!
Tests: 601, Assertions: 944, Errors: 304, Warnings: 1, PHPUnit Deprecations: 1.

andypost avatar May 07 '25 12:05 andypost