Make WordPress Core


Ignore:
Timestamp:
07/08/2015 04:04:11 PM (9 years ago)
Author:
jorbin
Message:

Remove PHP4 constructors from Unit Tests

If you are subclassing these classes in your own tests, you'll need to update your code.

Props johnbillion
See #31982

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/utils.php

    r32990 r33123  
    3232        $this->reset();
    3333        $this->debug = $debug;
    34     }
    35 
    36     /**
    37      * PHP4 constructor.
    38      */
    39     public function MockAction( $debug = 0 ) {
    40         self::__construct( $debug );
    4134    }
    4235
     
    150143        xml_set_character_data_handler($this->xml, array($this, 'dataHandler'));
    151144        $this->parse($in);
    152     }
    153 
    154     /**
    155      * PHP4 constructor.
    156      */
    157     public function testXMLParser( $in ) {
    158         self::__construct( $in );
    159145    }
    160146
Note: See TracChangeset for help on using the changeset viewer.