PHPUnit test not compatible PHPUnit 6.0+

Created on 22 September 2018, about 6 years ago
Updated 24 August 2023, over 1 year ago

PHPUnit's units of code are now namespaced. For instance, PHPUnit_Framework_TestCase is now PHPUnit\Framework\TestCase

https://github.com/sebastianbergmann/phpunit/wiki/Release-Announcement-f...

Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /web/modules/teszt/panels/tests/src/Unit/panels_ipe/RequestHandlerTestBase.php on line 17
FATAL Drupal\Tests\panels\Unit\panels_ipe\RemoveBlockRequestHandlerTest: test runner returned a non-zero error code (255).
Drupal\Tests\panels\Unit\panels_ipe\RemoveBlockRequestHandle 0 passes 1 fails

Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /web/modules/teszt/panels/tests/src/Unit/panels_ipe/RequestHandlerTestBase.php on line 17

🐛 Bug report
Status

Closed: duplicate

Version

4.0

Component

Code

Created by

🇭🇺Hungary nevergone Nyíregyháza, Hungary, Europe

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024