From 5cebd10ceddfddc1c31fa04ece57d8b3ed39ba6a Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 15 Oct 2015 04:44:25 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@35186 git-svn-id: http://core.svn.wordpress.org/trunk@35152 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index cec1f45bdb..5ae1323863 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35185'; +$wp_version = '4.4-alpha-35186'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.