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

Fix tests with phpunit10 #6220

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open

Fix tests with phpunit10 #6220

wants to merge 8 commits into from

Commits on Jan 15, 2024

  1. Fix phpunit 9 deprecation warning

     Output was produced with:
     .
       phpunit --migrate-configuration
     .
     Error was:
     .
     Warning:       Your XML configuration validates against a deprecated schema.
     Suggestion:    Migrate your XML configuration using "--migrate-configuration"!
    tenzap committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    5ba9735 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7f8ded8 View commit details
    Browse the repository at this point in the history
  3. fix error with phpunit10 (migrate configuration)

     Produced by: phpunit --migrate-configuration
    tenzap committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    88d6501 View commit details
    Browse the repository at this point in the history
  4. fix error with phpunit10 (cannot override runBare())

     Fatal error: Cannot override final method PHPUnit\Framework\TestCase::runBare() in tests/mocks/ci_testcase.php on line 351
    tenzap committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    7c41994 View commit details
    Browse the repository at this point in the history
  5. fix error with phpunit10 (undefined method setMethods())

     Was removed in phpunit10
    
     Error: Call to undefined method PHPUnit\Framework\MockObject\MockBuilder::setMethods()
    tenzap committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    e116394 View commit details
    Browse the repository at this point in the history
  6. fix error with phpunit10 (security_helper_test class not found)

     1) Class security_helper_test cannot be found in tests/codeigniter/helpers/security_helper_test.php
    tenzap committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    d7c9890 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4f295ac View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    310844b View commit details
    Browse the repository at this point in the history