~ubuntu-branches/ubuntu/trusty/moodle/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/phpunit/classes/advanced_testcase.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-09-09 15:22:35 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130909152235-d9njbvgugzm380an
Tags: 2.5.2-1
* New upstream version: 2.5.2.
  - Incorporates S3 security patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
    }
321
321
 
322
322
    /**
 
323
     * Starts email redirection.
 
324
     *
 
325
     * You can verify if email were sent or not by inspecting the email
 
326
     * array in the returned phpmailer sink instance. The redirection
 
327
     * can be stopped by calling $sink->close();
 
328
     *
 
329
     * @return phpunit_message_sink
 
330
     */
 
331
    public function redirectEmails() {
 
332
        return phpunit_util::start_phpmailer_redirection();
 
333
    }
 
334
 
 
335
    /**
323
336
     * Cleanup after all tests are executed.
324
337
     *
325
338
     * Note: do not forget to call this if overridden...