Wordpress/tests/phpunit/includes
Aaron Jorbin 4a60647ab7 Deprecate php4 style constructors
PHP7 is deprecating PHP4 style constructors, so we need to modify our code to have _construct methods that fire before the named PHP4 style constructors.  The PHP4 style constructors will call the PHP5 style constructor in case it is being called directly (usually via parent::METHOD).

This modifies external libraries to add PHP5 style constructors, but doesn't add a notice for when they are used.  In WordPress core code, PHP4 style constructors are being given a call to _deprecated_constructor. To the PHP4 style constructor I say "I know that I can't take no more | It ain't no lie | I wanna see you out that door | Baby, bye, bye, bye..."

Upstream: https://wiki.php.net/rfc/remove_php4_constructors

Props jdgrimes, netweb, jorbin
See #31982



git-svn-id: https://develop.svn.wordpress.org/trunk@32990 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-28 15:26:41 +00:00
..
bootstrap.php Set `$_SERVER['REQUEST_METHOD']` for unit tests. 2015-06-16 00:03:25 +00:00
exceptions.php
factory.php Term unit test factory class should override `create_and_get()` method. 2015-05-30 13:03:07 +00:00
functions.php During PHPUnit tests, don't autodetect permalink structure during WP installation. 2015-04-16 23:59:01 +00:00
install.php Set `$_SERVER['REQUEST_METHOD']` for unit tests. 2015-06-16 00:03:25 +00:00
mock-fs.php
mock-image-editor.php Add tests which ensure the `wp_editor_set_quality` and `jpeg_quality` filters only apply if they are added before the corresponding `WP_Image_Editor` is instantiated. 2014-12-15 21:24:21 +00:00
mock-mailer.php
testcase-ajax.php
testcase-canonical.php Implement canonical and `url_to_postid()` tests for child pages which share a post name with other child pages. 2015-06-24 00:40:45 +00:00
testcase-xmlrpc.php
testcase.php Introduce `WP_UnitTestCase::delete_user()`. 2015-06-26 12:58:29 +00:00
trac.php
utils.php Deprecate php4 style constructors 2015-06-28 15:26:41 +00:00
wp-profiler.php Deprecate php4 style constructors 2015-06-28 15:26:41 +00:00