Changeset 11736
- Timestamp:
- 11/03/2017 07:35:01 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r11734 r11736 105 105 106 106 parent::clean_up_global_scope(); 107 } 108 109 /** 110 * Returns a factory that can be used across tests, even in static methods. 111 * 112 * @since 3.0 113 * 114 * @return BP_UnitTest_Factory 115 */ 116 protected static function factory() { 117 static $factory = null; 118 if ( ! $factory ) { 119 $factory = new BP_UnitTest_Factory(); 120 } 121 return $factory; 107 122 } 108 123
Note: See TracChangeset
for help on using the changeset viewer.