Stub.php Interfaces, Classes and Traits PHPUnit_Framework_MockObject_Stub An object that stubs the process of a normal method for a mock object.