PHP 클래스 FBMock_Config

파일 보기 프로젝트 열기: facebook/fbmock 1 사용 예제들

공개 메소드들

메소드 설명
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 )

메소드 상세

clearConfig() 최종 공개 정적인 메소드

final public static clearConfig ( )

createMockImplementation() 공개 메소드

public createMockImplementation ( $class_name )

get() 최종 공개 정적인 메소드

final public static get ( )

getClassGenerator() 공개 메소드

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

getMethodGenerator() 공개 메소드

public getMethodGenerator ( )

getMockCreator() 공개 메소드

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

getMockTraits() 공개 메소드

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

getTestDoubleCreator() 공개 메소드

setConfig() 최종 공개 정적인 메소드

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