public static function 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

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php, line 1624

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();
}