Make WordPress Core

Changeset 764 in tests


Ignore:
Timestamp:
06/30/2012 05:41:01 PM (14 years ago)
Author:
nacin
Message:

Remove < 3.4 modified version of PHPMailer, designed to allow for mocking. see #47.

Location:
trunk/wp-testlib
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testlib/mock-mailer.php

    r492 r764  
    11<?php
    22
    3 if ( version_compare( $GLOBALS['wp_version'], '3.1.9', '>' ) && version_compare( $GLOBALS['wp_version'], '3.3.9', '<' ) ) {
    4     echo "Using custom build of PHPMailer for 3.2 and 3.3 testing\n\n";
    5     require_once(DIR_TESTROOT . '/wp-testlib/class-phpmailer.php');
    6 } else {
    7     require_once(ABSPATH . '/wp-includes/class-phpmailer.php');
    8 }
    9 
     3require_once(ABSPATH . '/wp-includes/class-phpmailer.php');
     4   
    105class MockPHPMailer extends PHPMailer {
    116    var $mock_sent = array();
Note: See TracChangeset for help on using the changeset viewer.