Build/Test Tools: I don't know how this happened.

See #39822


git-svn-id: https://develop.svn.wordpress.org/trunk@40873 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-06-02 14:10:56 +00:00
parent 0ab7067286
commit cc01df2bc8
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase {
* @param int|string $code
*/
public function setExpectedException( $exception, $message = '', $code = null ) {
if ( method_exists( 'PHPUnit_Framework_TestCase::setExpectedException' ) ) {
if ( method_exists( 'PHPUnit_Framework_TestCase', 'setExpectedException' ) ) {
parent::setExpectedException( $exception, $message, $code );
} else {
$this->expectException( $exception );