Changeset 40876 for branches/4.7/tests/phpunit/includes/testcase-ajax.php
- Timestamp:
- 06/05/2017 10:41:02 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 40872-40873
- Property svn:mergeinfo changed
-
branches/4.7/tests/phpunit/includes/testcase-ajax.php
r40547 r40876 201 201 $this->_last_response = $buffer; 202 202 } 203 204 /**205 * PHPUnit 6+ compatibility shim.206 *207 * @param mixed $exception208 * @param string $message209 * @param int|string $code210 */211 public function setExpectedException( $exception, $message = '', $code = null ) {212 if ( is_callable( 'parent::setExpectedException' ) ) {213 parent::setExpectedException( $exception, $message, $code );214 } else {215 $this->expectException( $exception );216 if ( '' !== $message ) {217 $this->expectExceptionMessage( $message );218 }219 if ( null !== $code ) {220 $this->expectExceptionCode( $code );221 }222 }223 }224 203 }
Note: See TracChangeset
for help on using the changeset viewer.