protected function YamlFormTestTrait::debug in YAML Form 8
Logs verbose (debug) message in a text file.
Parameters
mixed $data: Data to be output.
1 call to YamlFormTestTrait::debug()
- YamlFormTestTrait::getLastEmail in src/
Tests/ YamlFormTestTrait.php - Gets that last email sent during the currently running test case.
File
- src/
Tests/ YamlFormTestTrait.php, line 493
Class
- YamlFormTestTrait
- Defines form test trait.
Namespace
Drupal\yamlform\TestsCode
protected function debug($data) {
$string = var_export($data, TRUE);
$string = preg_replace('/=>\\s*array\\s*\\(/', '=> array(', $string);
$this
->verbose('<pre>' . htmlentities($string) . '</pre>');
}