PHP Trait FBMock_MockObject

All methods should be prefixed with "mock" to avoid collisions with other methods on the object being mocked. See Mock interface for documentation.
Datei anzeigen Open project: facebook/fbmock

Public Methods

Method Description
mockGetCalls ( $method_name )
mockImplementation ( $method_name, $callable )
mockReturn ( ) implements Mock
mockReturnThis ( $method1 )
mockThrow ( $method_name, Exception $e )

Private Methods

Method Description
__mockReturn ( $method_name, $value )
mockAssertMultiArgs ( $args, $method_name )

Method Details

mockGetCalls() public method

public mockGetCalls ( $method_name )

mockImplementation() public method

public mockImplementation ( $method_name, $callable )

mockReturn() public method

implements Mock
public mockReturn ( )

mockReturnThis() public method

public mockReturnThis ( $method1 )

mockThrow() public method

public mockThrow ( $method_name, Exception $e )
$e Exception