Wordpress/tests/phpunit/includes/factory/class-wp-unittest-factory-c...

14 lines
232 B
PHP

<?php
class WP_UnitTest_Factory_Callback_After_Create {
var $callback;
function __construct( $callback ) {
$this->callback = $callback;
}
function call( $object ) {
return call_user_func( $this->callback, $object );
}
}