DrupalWebTestCase::verboseEmail

  1. drupal
    1. 8
    2. 7
Versions
7 protected DrupalWebTestCase::verboseEmail($count = 1)

Outputs to verbose the most recent $count emails sent.

Parameters

$count Optional number of emails to output.

Code

modules/simpletest/drupal_web_test_case.php, line 3373

<?php
protected function verboseEmail($count = 1) {
  $mails = $this->drupalGetMails();
  for ($i = sizeof($mails) -1; $i >= sizeof($mails) - $count && $i >= 0; $i--) {
    $mail = $mails[$i];
    $this->verbose(t('Email:') . '<pre>' . print_r($mail, TRUE) . '</pre>');
  }
}
?>