Return.php Interfaces, Classes and Traits PHPUnit_Framework_MockObject_Stub_Return Stubs a method by returning a user-defined value.