PHP Class FBMock_Config

Afficher le fichier Open project: facebook/fbmock Class Usage Examples

Méthodes publiques

Méthode 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 méthode

final public static clearConfig ( )

createMockImplementation() public méthode

public createMockImplementation ( $class_name )

get() final public static méthode

final public static get ( )

getClassGenerator() public méthode

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

getMethodGenerator() public méthode

public getMethodGenerator ( )

getMockCreator() public méthode

Get object responsible for creating mock objects
public getMockCreator ( ) : FBMock_MockCreator
Résultat FBMock_MockCreator or subclass

getMockTraits() public méthode

Get list of traits to add to mocks
public getMockTraits ( ) : array
Résultat array names of traits

getTestDoubleCreator() public méthode

setConfig() final public static méthode

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