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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nevergone created an issue. See original summary.

nevergone’s picture

Status: Needs review » Needs work

The last submitted patch, 2: 3001708-panels_phpunit6-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

nevergone’s picture

Status: Needs work » Needs review
szeidler’s picture

Is there a specific reason extending from \PHPUnit\Framework\TestCase instead of Drupal\Tests\UnitTestCase?

joelpittet’s picture

Status: Needs review » Closed (duplicate)

This appears to have been fixed.

Thanks @nevergone and @szeidler for taking a look at this.