function UnitTestCase::setDebugDumpHandler
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/UnitTestCase.php \Drupal\Tests\UnitTestCase::setDebugDumpHandler()
Registers the dumper CLI handler when the DebugDump extension is enabled.
Attributes
#[BeforeClass]
File
-
core/
tests/ Drupal/ Tests/ UnitTestCase.php, line 55
Class
- UnitTestCase
- Provides a base class and helpers for Drupal unit tests.
Namespace
Drupal\TestsCode
public static function setDebugDumpHandler() : void {
if (DebugDump::isEnabled()) {
VarDumper::setHandler(DebugDump::class . '::cliHandler');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.