function TestVarDumper::htmlHandler

Same name and namespace in other branches
  1. 9 core/tests/Drupal/TestTools/TestVarDumper.php \Drupal\TestTools\TestVarDumper::htmlHandler()
  2. 10 core/tests/Drupal/TestTools/TestVarDumper.php \Drupal\TestTools\TestVarDumper::htmlHandler()

A HTML handler for \Symfony\Component\VarDumper\VarDumper.

File

core/tests/Drupal/TestTools/TestVarDumper.php, line 42

Class

TestVarDumper
Provides handlers for the Symfony VarDumper to work within tests.

Namespace

Drupal\TestTools

Code

public static function htmlHandler($var) {
    $cloner = new VarCloner();
    $dumper = new HtmlDumper();
    $dumper->dump($cloner->cloneVar($var));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.