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
Comment | File | Size | Author |
---|---|---|---|
#2 | 3001708-panels_phpunit6-2.patch | 574 bytes | nevergone |
Comments
Comment #2
nevergone CreditAttribution: nevergone commentedComment #4
nevergone CreditAttribution: nevergone commentedComment #5
szeidler CreditAttribution: szeidler at Ramsalt Lab commentedIs there a specific reason extending from
\PHPUnit\Framework\TestCase
instead ofDrupal\Tests\UnitTestCase
?Comment #6
joelpittetThis appears to have been fixed.
Thanks @nevergone and @szeidler for taking a look at this.