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

Class extending PHPUnit\Framework\TestSuite does not extend PHPUnit\FrameworkTestCase #2950

Closed
giorgiosironi opened this issue Jan 4, 2018 · 2 comments · Fixed by N0rthernL1ghts/eloquent-bootstrap#2 or Zemhart/project_UAS_PHP#20

Comments

@giorgiosironi
Copy link
Contributor

giorgiosironi commented Jan 4, 2018

Q A
PHPUnit version 6.5.5
PHP version 7.0.26
Installation Method Composer
PHP Fatal error:  Uncaught PHPUnit\Framework\Exception: Class "PHPUnit_Extensions_SeleniumBrowserSuite" does not extend PHPUnit\Framework\TestCase.
/home/travis/build/giorgiosironi/phpunit-selenium/vendor/phpunit/phpunit/src/Framework/TestSuite.php:159
/home/travis/build/giorgiosironi/phpunit-selenium/vendor/phpunit/phpunit/src/Framework/TestSuite.php:290
/home/travis/build/giorgiosironi/phpunit-selenium/vendor/phpunit/phpunit/src/Framework/TestSuite.php:377
/home/travis/build/giorgiosironi/phpunit-selenium/vendor/phpunit/phpunit/src/Framework/TestSuite.php:403
/home/travis/build/giorgiosironi/phpunit-selenium/vendor/phpunit/phpunit/src/Runner/BaseTestRunner.php:65
/home/travis/build/giorgiosironi/phpunit-selenium/vendor/phpunit/phpunit/src/TextUI/Command.php:169
/home/travis/build/giorgiosironi/phpunit-selenium/vendor/phpunit/phpunit/src/TextUI/Command.php:148

References:

May be related to #2859 If it's not that, I can try to reduce the test case to something smaller and pastable here.

@sebastianbergmann
Copy link
Owner

  • I do not understand what you are trying to report
  • PHPUnit\Framework\TestSuite never extended PHPUnit\Framework\TestSuite
  • Sooner or later, PHPUnit\Framework\TestSuite will be gone. Hopefully with PHPUnit 8

@giorgiosironi
Copy link
Contributor Author

PHPUnit_Extensions_SeleniumBrowserSuite has been working as an extension of PHPUnit_Framework_TestSuite (now PHPUnit\Framework\TestSuite). It looks like it was able to run transparently as a PHPUnit\Framework\TestCase in PHPUnit 6.3.0, but from 6.5.5 (or possibly earlier).

When the class is gone as part of a new major version, phpunit-selenium should rewrite its dynamic generation of test cases not to use this class.

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