PHP 클래스 PhpSpec\Wrapper\Subject\WrappedObject

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

공개 메소드들

메소드 설명
__construct ( object | null $instance, PhpSpec\Formatter\Presenter\Presenter $presenter )
beAnInstanceOf ( string $classname, array $arguments = [] )
beConstructedThrough ( callable | string | null $factoryMethod, array $arguments = [] )
beConstructedWith ( array $args )
getArguments ( ) : array
getClassName ( ) : string
getFactoryMethod ( ) : callable | null
getInstance ( ) : object | null
instantiate ( ) : object
isInstantiated ( ) : boolean
setClassName ( string $classname )
setInstance ( object $instance )
setInstantiated ( boolean $instantiated )

비공개 메소드들

메소드 설명
instantiateFromCallback ( callable $factoryCallable ) : object

메소드 상세

__construct() 공개 메소드

public __construct ( object | null $instance, PhpSpec\Formatter\Presenter\Presenter $presenter )
$instance object | null
$presenter PhpSpec\Formatter\Presenter\Presenter

beAnInstanceOf() 공개 메소드

public beAnInstanceOf ( string $classname, array $arguments = [] )
$classname string
$arguments array

beConstructedThrough() 공개 메소드

public beConstructedThrough ( callable | string | null $factoryMethod, array $arguments = [] )
$factoryMethod callable | string | null
$arguments array

beConstructedWith() 공개 메소드

public beConstructedWith ( array $args )
$args array

getArguments() 공개 메소드

public getArguments ( ) : array
리턴 array

getClassName() 공개 메소드

public getClassName ( ) : string
리턴 string

getFactoryMethod() 공개 메소드

public getFactoryMethod ( ) : callable | null
리턴 callable | null

getInstance() 공개 메소드

public getInstance ( ) : object | null
리턴 object | null

instantiate() 공개 메소드

public instantiate ( ) : object
리턴 object

isInstantiated() 공개 메소드

public isInstantiated ( ) : boolean
리턴 boolean

setClassName() 공개 메소드

public setClassName ( string $classname )
$classname string

setInstance() 공개 메소드

public setInstance ( object $instance )
$instance object

setInstantiated() 공개 메소드

public setInstantiated ( boolean $instantiated )
$instantiated boolean