Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If run PHPUnit test using run-tests.sh then the info is not correctly retrieved from the class... for example:
$ php ./core/scripts/run-tests.sh --class "Drupal\breakpoint\Tests\BreakpointMediaQueryTest"
Drupal test run
---------------
Tests to be run:
- (Drupal\breakpoint\Tests\BreakpointMediaQueryTest)
Test run started:
Thursday, May 9, 2013 - 16:31
Test summary
------------
Breakpoint media query tests 2 passes, 0 fails, and 0 exceptions
Test run duration: 0 sec
Comment | File | Size | Author |
---|---|---|---|
#1 | 1991088.simpletest-classloader-phpunit.1.patch | 783 bytes | alexpott |
Comments
Comment #1
alexpottWith the attached patch...
Basically this is happening because we haven't called
simpletest_classloader_register()
before trying to use thegetInfo()
method form the test class insimpletest_script_reporter_init()
.Comment #2
msonnabaum CreditAttribution: msonnabaum commentedNice catch. Looks like a simple enough fix.
Comment #3
catchCommitted/pushed to 8.x, thanks!