Skip to content

Running unittests fails on PHP 8.3+ #213

@andypost

Description

@andypost

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions