Wordpress/tests/phpunit/includes
Aaron Jorbin 6604782cd9 General: PHP7.3 throws an E_WARNING when using continue to target a switch
Applying continue to a switch is equivalent to using break and quite possibly, a continue targeting a higher level control structure is actually intended.

To target the higher level control structure, a numeric argument has to be passed to continue. This fixes two cases in WordPress Core where this is currently happening.

See: https://github.com/php/php-src/pull/3364
See: https://wiki.php.net/rfc/continue_on_switch_deprecation

Props jrf.
Fixes #44543.



git-svn-id: https://develop.svn.wordpress.org/trunk@43653 602fd350-edb4-49c9-b593-d223f7449a82
2018-09-23 22:49:02 +00:00
..
factory Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
bootstrap.php Build/Test Tools: Introduce support for a WP_TESTS_CONFIG_FILE_PATH constant to override the test suite config file location. 2018-06-16 14:21:18 +00:00
class-basic-object.php Build/Test tools: Remove unnecessary PHP functionality tests from the test suite. 2017-12-09 23:08:24 +00:00
class-basic-subclass.php Build/Test tools: Remove unnecessary PHP functionality tests from the test suite. 2017-12-09 23:08:24 +00:00
exceptions.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
factory.php Add tests for get_bookmarks() cache. 2016-05-25 18:20:24 +00:00
functions.php Build/Test Tools: Add documentation for tests_add_filter(), _test_filter_build_unique_id(), _delete_all_data(), _delete_all_posts(). 2018-08-02 22:35:10 +00:00
install.php Code is Poetry. 2017-11-30 23:09:33 +00:00
mock-fs.php Code is Poetry. 2017-11-30 23:09:33 +00:00
mock-image-editor.php Code is Poetry. 2017-11-30 23:09:33 +00:00
mock-mailer.php Code is Poetry. 2017-11-30 23:09:33 +00:00
object-cache.php Code is Poetry. 2017-11-30 23:09:33 +00:00
phpunit6-compat.php Code is Poetry. 2017-11-30 23:09:33 +00:00
plural-form-function.php Code is Poetry. 2017-11-30 23:09:33 +00:00
speed-trap-listener.php Code is Poetry. 2017-11-30 23:09:33 +00:00
spy-rest-server.php Code is Poetry. 2017-11-30 23:09:33 +00:00
testcase-ajax.php Code is Poetry. 2017-11-30 23:09:33 +00:00
testcase-canonical.php Code is Poetry. 2017-11-30 23:09:33 +00:00
testcase-rest-api.php REST API: Introduce baby API to the world. 2015-10-08 02:30:18 +00:00
testcase-rest-controller.php Tests: Replace use of $this->server with rest_get_server() for better memory recycling. 2018-02-21 16:24:30 +00:00
testcase-rest-post-type-controller.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:50:26 +00:00
testcase-xmlrpc.php Code is Poetry. 2017-11-30 23:09:33 +00:00
testcase.php Tests: Skip multisite-only or single site-only tests correctly based on test doc annotations. 2018-04-25 22:37:08 +00:00
trac.php Code is Poetry. 2017-11-30 23:09:33 +00:00
utils.php General: PHP7.3 throws an E_WARNING when using continue to target a switch 2018-09-23 22:49:02 +00:00
wp-profiler.php Code is Poetry. 2017-11-30 23:09:33 +00:00