PHP Class PHPSpec2\Prophet\ObjectProphet

Inheritance: implements ProphetInterface
Afficher le fichier Open project: phpspec/phpspec2

Méthodes publiques

Méthode 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 = [] )

Méthodes protégées

Méthode Description
createLazySubject ( )

Private Methods

Méthode Description
isSubjectMethodAccessible ( $method )
isSubjectPropertyAccessible ( $property, $withValue = false )

Method Details

__call() public méthode

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

__construct() public méthode

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

__get() public méthode

public __get ( $property )

__set() public méthode

public __set ( $property, $value = null )

beAnInstanceOf() public méthode

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

beConstructedWith() public méthode

public beConstructedWith ( )

callOnProphetSubject() public méthode

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

createLazySubject() protected méthode

protected createLazySubject ( )

getFromProphetSubject() public méthode

public getFromProphetSubject ( $property )

getWrappedSubject() public méthode

public getWrappedSubject ( )

setToProphetSubject() public méthode

public setToProphetSubject ( $property, $value = null )

should() public méthode

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

shouldNot() public méthode

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