diff --git a/tests/phpunit/includes/testcase.php b/tests/phpunit/includes/testcase.php index 888bb5bb71..b2263ec9c6 100644 --- a/tests/phpunit/includes/testcase.php +++ b/tests/phpunit/includes/testcase.php @@ -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 );