Skip to content

Test suite is not compatible with PhpUnit 8.0 #33

Closed

Description

@oleg-andreyev

https://travis-ci.org/oleg-andreyev/MinkSelenium2Driver/jobs/510999339

PHP Fatal error:  Declaration of Behat\Mink\Tests\Driver\SkippingUnsupportedTestCase::onNotSuccessfulTest(Throwable $e) must be compatible with PHPUnit\Framework\TestCase::onNotSuccessfulTest(Throwable $t): void in /home/travis/build/oleg-andreyev/MinkSelenium2Driver/vendor/mink/driver-testsuite/tests/SkippingUnsupportedTestCase.php on line 18

Supporting more and more versions of PHP is becoming quite painful, we already have

if (class_exists('PHPUnit\Runner\Version') && version_compare(Version::id(), '6.0.0', '>=')) {
which is trying to solve some issue with PHPUnit upgrade.

This repository does not define the exact version of PHPUnit it supports and relies on something that Travis-CI will provide. Currently, I think we need to define some version of PHPUnit which still support 5.3 and 7.x

Activity

  1. aik099 commented on Mar 27, 2019

    @aik099
    Member

    Ha-ha. Supporting more and more PHPUnit versions is more painful, because on every major release BC breaks (in terms of public method signature change) occurs.

  2. oleg-andreyev commented on Mar 27, 2019

    @oleg-andreyev
    ContributorAuthor

    Right, so instead of support so many versions of PHPUnit, I propose define PHPUnit version which supports our current requirements (PHP >= 5.4 or even >= 7.0).

  3. oleg-andreyev commented on Apr 1, 2019

    @oleg-andreyev
    ContributorAuthor

    @stof what do you think about defining exact PHPUnit version?

  4. added a commit that references this issue on Feb 23, 2021
  5. stof commented on Oct 11, 2021

    @stof
    Member

    This has been solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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