PHP Class FBMock_Config

显示文件 Open project: facebook/fbmock Class Usage Examples

Public Methods

Method Description
clearConfig ( )
createMockImplementation ( $class_name )
get ( )
getClassGenerator ( ) : FBMock_TestDoubleClassGenerator Get object responsible for doing codegen for test doubles
getMethodGenerator ( )
getMockCreator ( ) : FBMock_MockCreator Get object responsible for creating mock objects
getMockTraits ( ) : array Get list of traits to add to mocks
getTestDoubleCreator ( )
setConfig ( FBMock_Config $config )

Method Details

clearConfig() final public static method

final public static clearConfig ( )

createMockImplementation() public method

public createMockImplementation ( $class_name )

get() final public static method

final public static get ( )

getClassGenerator() public method

Get object responsible for doing codegen for test doubles
public getClassGenerator ( ) : FBMock_TestDoubleClassGenerator
return FBMock_TestDoubleClassGenerator or subclass

getMethodGenerator() public method

public getMethodGenerator ( )

getMockCreator() public method

Get object responsible for creating mock objects
public getMockCreator ( ) : FBMock_MockCreator
return FBMock_MockCreator or subclass

getMockTraits() public method

Get list of traits to add to mocks
public getMockTraits ( ) : array
return array names of traits

getTestDoubleCreator() public method

setConfig() final public static method

final public static setConfig ( FBMock_Config $config )
$config FBMock_Config