Changeset 44497 for trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php
- Timestamp:
- 01/09/2019 05:43:14 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/factory/class-wp-unittest-factory-callback-after-create.php
r36347 r44497 2 2 3 3 class WP_UnitTest_Factory_Callback_After_Create { 4 5 /** 6 * @var callable 7 */ 4 8 var $callback; 5 9 10 /** 11 * WP_UnitTest_Factory_Callback_After_Create constructor. 12 * 13 * @param callable $callback A callback function. 14 */ 6 15 function __construct( $callback ) { 7 16 $this->callback = $callback; 8 17 } 9 18 19 /** 20 * Calls the set callback on given object. 21 * 22 * @param mixed $object The object to apply the callback on. 23 * 24 * @return mixed The possibly altered object. 25 */ 10 26 function call( $object ) { 11 27 return call_user_func( $this->callback, $object );
Note: See TracChangeset
for help on using the changeset viewer.