public static function PHPUnit_Framework_TestCase::returnSelf in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::returnSelf()
Returns the current object.
This method is useful when mocking a fluent interface.
@since Method available since Release 3.6.0
Return value
PHPUnit_Framework_MockObject_Stub_ReturnSelf
1 call to PHPUnit_Framework_TestCase::returnSelf()
- Framework_MockObjectTest::testStubbedReturnSelf in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 1671
Class
- PHPUnit_Framework_TestCase
- A TestCase defines the fixture to run multiple tests.
Code
public static function returnSelf() {
return new PHPUnit_Framework_MockObject_Stub_ReturnSelf();
}