public static function PHPUnit_Framework_TestCase::returnValue in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::returnValue()
@since Method available since Release 3.0.0
Parameters
mixed $value:
Return value
PHPUnit_Framework_MockObject_Stub_Return
12 calls to PHPUnit_Framework_TestCase::returnValue()
- Framework_MockObjectTest::testStubbedReturnValue in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - PHP_CodeCoverage_TestCase::setUpXdebugStubForClassWithAnonymousFunction in vendor/
phpunit/ php-code-coverage/ tests/ TestCase.php - PHP_CodeCoverage_TestCase::setUpXdebugStubForFileWithIgnoredLines in vendor/
phpunit/ php-code-coverage/ tests/ TestCase.php - ProxyClassGeneratorTest::createClassMetadata in vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyClassGeneratorTest.php - ProxyLogicTest::testCallingVariadicMethodCausesLazyLoading in vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ ProxyLogicTest.php
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 1626
Class
- PHPUnit_Framework_TestCase
- A TestCase defines the fixture to run multiple tests.
Code
public static function returnValue($value) {
return new PHPUnit_Framework_MockObject_Stub_Return($value);
}