public static function PHPUnit_Framework_TestCase::returnCallback in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::returnCallback()
@since Method available since Release 3.3.0
Parameters
mixed $callback:
Return value
PHPUnit_Framework_MockObject_Stub_ReturnCallback
14 calls to PHPUnit_Framework_TestCase::returnCallback()
- Framework_MockObjectTest::testFunctionCallback in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - Framework_MockObjectTest::testMockArgumentsPassedByReference in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - See https://github.com/sebastianbergmann/phpunit-mock-objects/issues/81
- Framework_MockObjectTest::testMockArgumentsPassedByReference2 in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - See https://github.com/sebastianbergmann/phpunit-mock-objects/issues/81
- Framework_MockObjectTest::testMockArgumentsPassedByReference3 in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - https://github.com/sebastianbergmann/phpunit-mock-objects/issues/116
- Framework_MockObjectTest::testMockArgumentsPassedByReference4 in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - https://github.com/sebastianbergmann/phpunit/issues/796
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 1658
Class
- PHPUnit_Framework_TestCase
- A TestCase defines the fixture to run multiple tests.
Code
public static function returnCallback($callback) {
return new PHPUnit_Framework_MockObject_Stub_ReturnCallback($callback);
}