Wordpress/tests/phpunit/includes
Scott Taylor 16d98ebf73 Unit Tests: implement `setUpBeforeClass()` and `tearDownAfterClass()` on `WP_UnitTestCase`. Use late static binding (plus a gross fallback for PHP 5.2) to check if `wpSetUpBeforeClass()` or `wpTearDownAfterClass()` exist on the called class, and then call it and pass a static `WP_UnitTest_Factory` instance via Dependency Injection, if it exists.
This makes it way easier to add fixtures, and tear them down, without needing to instantiate `WP_UnitTest_Factory` in every class - removes the need to call `commit_transaction()` in each individual class.

See #30017, #33968.


git-svn-id: https://develop.svn.wordpress.org/trunk@35186 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-15 04:43:37 +00:00
..
bootstrap.php
exceptions.php
factory.php
functions.php
install.php
mock-fs.php
mock-image-editor.php
mock-mailer.php
spy-rest-server.php
testcase-ajax.php
testcase-canonical.php Tests: Introduce `WP_UnitTestCase::reset_permalinks()`, an attempt to DRY up logic for resetting and restoring default permalinks on `setUp()` and `tearDown()`. 2015-10-03 17:14:12 +00:00
testcase-rest-api.php
testcase-xmlrpc.php
testcase.php
trac.php
utils.php
wp-profiler.php