Changeset 32990 for trunk/tests/phpunit/includes/utils.php
- Timestamp:
- 06/28/2015 03:26:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/utils.php
r31046 r32990 26 26 var $debug; 27 27 28 function MockAction($debug=0) { 28 /** 29 * PHP5 constructor. 30 */ 31 function __construct( $debug = 0 ) { 29 32 $this->reset(); 30 33 $this->debug = $debug; 34 } 35 36 /** 37 * PHP4 constructor. 38 */ 39 public function MockAction( $debug = 0 ) { 40 self::__construct( $debug ); 31 41 } 32 42 … … 130 140 var $data = array(); 131 141 132 function testXMLParser($in) { 142 /** 143 * PHP5 constructor. 144 */ 145 function __construct( $in ) { 133 146 $this->xml = xml_parser_create(); 134 147 xml_set_object($this->xml, $this); … … 137 150 xml_set_character_data_handler($this->xml, array($this, 'dataHandler')); 138 151 $this->parse($in); 152 } 153 154 /** 155 * PHP4 constructor. 156 */ 157 public function testXMLParser( $in ) { 158 self::__construct( $in ); 139 159 } 140 160
Note: See TracChangeset
for help on using the changeset viewer.