From 2364d616b9e83e60d7a9a571bec78ddc4cb8f790 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 19 Oct 2017 15:32:07 +0000 Subject: [PATCH] Build/Test tools: Document the return value of `WP_UnitTestCase::factory()`. See #41017 git-svn-id: https://develop.svn.wordpress.org/trunk@41945 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/testcase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/phpunit/includes/testcase.php b/tests/phpunit/includes/testcase.php index b2263ec9c6..4b47ddca0a 100644 --- a/tests/phpunit/includes/testcase.php +++ b/tests/phpunit/includes/testcase.php @@ -33,6 +33,11 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase { } } + /** + * Fetches the factory object for generating WordPress fixtures. + * + * @return WP_UnitTest_Factory The fixture factory. + */ protected static function factory() { static $factory = null; if ( ! $factory ) {