function DrupalTestCaseTrait::setDebugDumpHandler

Registers the dumper CLI handler when the DebugDump extension is enabled.

Attributes

#[BeforeClass]

File

core/tests/Drupal/Tests/DrupalTestCaseTrait.php, line 48

Class

DrupalTestCaseTrait
Provides methods common across all Drupal abstract base test classes.

Namespace

Drupal\Tests

Code

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.