PHP Class PHPSpec2\Prophet\ObjectProphet

Inheritance: implements ProphetInterface
Show file Open project: phpspec/phpspec2

Public Methods

Method Description
__call ( $method, array $arguments = [] )
__construct ( $subject = null, MatchersCollection $matchers, ArgumentsUnwrapper $unwrapper )
__get ( $property )
__set ( $property, $value = null )
beAnInstanceOf ( $classname, array $constructorArguments = [] )
beConstructedWith ( )
callOnProphetSubject ( $method, array $arguments = [] )
getFromProphetSubject ( $property )
getWrappedSubject ( )
setToProphetSubject ( $property, $value = null )
should ( $name = null, array $arguments = [] )
shouldNot ( $name = null, array $arguments = [] )

Protected Methods

Method Description
createLazySubject ( )

Private Methods

Method Description
isSubjectMethodAccessible ( $method )
isSubjectPropertyAccessible ( $property, $withValue = false )

Method Details

__call() public method

public __call ( $method, array $arguments = [] )
$arguments array

__construct() public method

public __construct ( $subject = null, MatchersCollection $matchers, ArgumentsUnwrapper $unwrapper )
$matchers PHPSpec2\Matcher\MatchersCollection
$unwrapper PHPSpec2\Wrapper\ArgumentsUnwrapper

__get() public method

public __get ( $property )

__set() public method

public __set ( $property, $value = null )

beAnInstanceOf() public method

public beAnInstanceOf ( $classname, array $constructorArguments = [] )
$constructorArguments array

beConstructedWith() public method

public beConstructedWith ( )

callOnProphetSubject() public method

public callOnProphetSubject ( $method, array $arguments = [] )
$arguments array

createLazySubject() protected method

protected createLazySubject ( )

getFromProphetSubject() public method

public getFromProphetSubject ( $property )

getWrappedSubject() public method

public getWrappedSubject ( )

setToProphetSubject() public method

public setToProphetSubject ( $property, $value = null )

should() public method

public should ( $name = null, array $arguments = [] )
$arguments array

shouldNot() public method

public shouldNot ( $name = null, array $arguments = [] )
$arguments array