Problem/Motivation

/usr/local/Cellar/php55/5.5.25/bin/php /private/var/folders/9b/073w6tbx1tgfnhzsx7_4ps_w0000gn/T/ide-phpunit.php --configuration /Users/dawehner/www/hal-booking/core/phpunit.xml.dist Drupal\Tests\json_field\Kernel\JSONTextareaWidgetTest /Users/dawehner/www/hal-booking/modules/custom/json_field/tests/src/Kernel/JSONTextareaWidgetTest.php
Testing started at 01:15 ...
PHPUnit 4.8.11 by Sebastian Bergmann and contributors.


PHP Fatal error:  Class 'PHPUnit_Util_Configuration' not found in - on line 76
PHP Stack trace:
PHP   1. {main}() -:0

Fatal error: Class 'PHPUnit_Util_Configuration' not found in - on line 76

Call Stack:
    0.0017     323888   1. {main}() -:0

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#5 drupal_2597814_5.patch768 bytesxano
#5 interdiff.txt675 bytesxano
#4 2597814-4.patch661 bytesdawehner
#2 2597814-2.patch541 bytesdawehner

Comments

dawehner created an issue. See original summary.

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new541 bytes

Here is a fix for the issue.

alexpott’s picture

Status: Needs review » Needs work
+++ b/core/tests/bootstrap.php
@@ -81,6 +81,9 @@ function drupal_phpunit_get_extension_namespaces($dirs) {
+if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
+  define('PHPUNIT_COMPOSER_INSTALL', __DIR__ . '/../../autoload.php');
+}
 $loader = require __DIR__ . '/../../autoload.php';

A comment would be nice. Works great - manually tested.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new661 bytes

.

xano’s picture

StatusFileSize
new675 bytes
new768 bytes

I added the details that Daniel shared with me at the BADCamp sprints that were not included in the documentation yet.

xano’s picture

Status: Needs review » Reviewed & tested by the community

@dawehner confirmed the docs change was good, ans @alexpott and I both confirmed the fix itself works.

dawehner’s picture

Thank you @xano

alexpott’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +rc eligible

Committed 7cf195d and pushed to 8.0.x. Thanks!

  • alexpott committed 7cf195d on 8.0.x
    Issue #2597814 by dawehner, Xano: Kerneltests are broken in phpstorm
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.