8.5.x Functions.php callback($callback)
8.0.x Functions.php callback($callback)
8.1.x Functions.php callback($callback)
8.2.x Functions.php callback($callback)
8.3.x Functions.php callback($callback)
8.4.x Functions.php callback($callback)
8.6.x Functions.php callback($callback)

Returns a PHPUnit_Framework_Constraint_Callback matcher object.

Parameters

callable $callback:

Return value

PHPUnit_Framework_Constraint_Callback

7 string references to 'callback'
BubbleableMetadataTest::providerTestMerge in core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
Provides test data for testMerge().
Callback::getDefaultOption in vendor/symfony/validator/Constraints/Callback.php
Returns the name of the default option.
CallbackStream::getMetadata in vendor/zendframework/zend-diactoros/src/CallbackStream.php
Get stream metadata as an associative array or retrieve a specific key.
d6_action.yml in core/modules/action/migration_templates/d6_action.yml
core/modules/action/migration_templates/d6_action.yml
d7_action.yml in core/modules/action/migration_templates/d7_action.yml
core/modules/action/migration_templates/d7_action.yml

... See full list

File

vendor/phpunit/phpunit/src/Framework/Assert/Functions.php, line 1920

Code

function callback($callback) {
  return call_user_func_array('PHPUnit_Framework_Assert::callback', func_get_args());
}