Documentation

PHPUnit_Framework_MockObject_Stub_Return
in package
implements PHPUnit_Framework_MockObject_Stub

Stubs a method by returning a user-defined value.

Tags
since

Class available since Release 1.0.0

Interfaces, Classes and Traits

PHPUnit_Framework_MockObject_Stub
An object that stubs the process of a normal method for a mock object.

Table of Contents

$value  : mixed
__construct()  : mixed
invoke()  : mixed
Fakes the processing of the invocation $invocation by returning a specific value.
toString()  : mixed

Properties

Methods

__construct()

public __construct(mixed $value) : mixed
Parameters
$value : mixed
Return values
mixed

toString()

public toString() : mixed
Return values
mixed

Search results