diff --git a/tests/phpunit/tests/ajax/Compression.php b/tests/phpunit/tests/ajax/Compression.php index d82e0c54b9..e0ab837c07 100644 --- a/tests/phpunit/tests/ajax/Compression.php +++ b/tests/phpunit/tests/ajax/Compression.php @@ -25,7 +25,7 @@ class Tests_Ajax_CompressionTest extends WP_Ajax_UnitTestCase { $_GET['test'] = 1; // Make the request - $this->setExpectedException( 'WPAjaxDieStopException', '0' ); + $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); $this->_handleAjax( 'wp-compression-test' ); } diff --git a/tests/phpunit/tests/ajax/TagSearch.php b/tests/phpunit/tests/ajax/TagSearch.php index c8a621116a..43ea824fd2 100644 --- a/tests/phpunit/tests/ajax/TagSearch.php +++ b/tests/phpunit/tests/ajax/TagSearch.php @@ -68,7 +68,7 @@ class Tests_Ajax_TagSearch extends WP_Ajax_UnitTestCase { // Make the request // No output, so we get a stop exception - $this->setExpectedException( 'WPAjaxDieStopException', '0' ); + $this->setExpectedException( 'WPAjaxDieStopException', '' ); $this->_handleAjax( 'ajax-tag-search' ); }