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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1854274-1.patch | 636 bytes | jibran |
Comments
Comment #1
jibranPlease find the patch.
Comment #2
chx commentedComment #3
webchickCommitted and pushed to 8.x. Thanks!