function 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/Assert/Functions.php, line 2331

Code

function returnSelf() {
  return call_user_func_array('PHPUnit_Framework_TestCase::returnSelf', func_get_args());
}