Change record status: 
Project: 
Introduced in branch: 
9.2.x
Introduced in version: 
9.2.0
Description: 

AssertLegacyTrait::verbose() is leftover of Simpletest where it was dumping some content in the Simpletest result UI, but in PHPUnit it actually does nothing.

After #2795567: Use Symfony's VarDumper for easier test debugging with dump(), dump() can be used in cases where it's necessary to debug output.

In Unit and Kernel tests, the information will be output on the command line.

In Browser tests, dump() in the test code will cause output on the command line; dump() in SUT code, that is, in the site code that is being tested will cause output in the HTML page.

Example:

BEFORE

    $projects = locale_translation_build_projects();
    $this->verbose($projects['drupal']->info['version']);
    $this->assertEqual('8.0.x', $projects['drupal']->info['version'], 'The branch of the core dev release.');

AFTER

    $projects = locale_translation_build_projects();
    dump($projects['drupal']->info['version']);
    $this->assertEqual('8.0.x', $projects['drupal']->info['version'], 'The branch of the core dev release.');

AssertLegacyTrait::verbose() is now deprecated for removal in Drupal 10.

In addition AssertMailTrait::verboseEmail() was also deprecated; it calls verbose() and is not currently used in Core.

Impacts: 
Module developers