While running run-tests.sh on windows using git bash generates error:

$ php core/scripts/run-tests.sh --class "Drupal\email\Tests\EmailItemTest"
 
Drupal test run
---------------
 
Tests to be run:
 - E-mail field item (Drupal\email\Tests\EmailItemTest)
 
Test run started:
 
Fatal error: Class 'Drupal\Component\Datetime\SELF' not found in D:\xampp\htdocs\d8\core\lib\Drupal\Component\Datetime\DateTimePlus.php on line 713

@chx figure out on IRC this bug is because of https://bugs.php.net/bug.php?id=60833 after replacing the SELF with self test runs fine.

CommentFileSizeAuthor
#1 1854274-1.patch636 bytesjibran
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jibran’s picture

Status: Active » Needs review
FileSize
636 bytes

Please find the patch.

chx’s picture

Title: Running test on windows generates error. » [HEAD BROKEN] DateTimePlus uses SELF instead of self
Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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