Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore Phpunit Tests #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Restore Phpunit Tests #18

wants to merge 1 commit into from

Conversation

ktomk
Copy link
Contributor

@ktomk ktomk commented Feb 12, 2025

Since Travis is gone we've missed the opportunity to run the Phpunit test-cases.

This pull request restores the test-suite in the current matrix on Microsoft Github.

To test locally, run composer install and then composer test.

The `pear run-tests -r tests/` command executes the .phpt tests of which
there are none for Net/URL2:

    pear run-tests -r tests/
    Running 0 tests
    TOTAL TIME: 00:00
    0 PASSED TESTS
    0 SKIPPED TESTS

Running with `-u` for the Phpunit test-cases fails with the pear test
runner as long as it is not possible to install Phpunit via pear.

As an intermediate, use the phpunit test runner from the project
configuration (composer.json) and bootstrap across PHP versions.

Additionally, touch the test-cases for updates of PhpUnit since versions
3/4/5 up to 12.0.2 (tested with PHP 5.3-8.4).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant