PHP Class PhpSpec\Wrapper\Subject\Caller

Exibir arquivo Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( WrappedObject $wrappedObject, ExampleNode $example, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, ExceptionFactory $exceptions, Wrapper $wrapper, PhpSpec\CodeAnalysis\AccessInspector $accessInspector )
call ( string $method, array $arguments = [] ) : Subject
constantDefined ( string $property ) : boolean
get ( string $property ) : Subject | string
getWrappedObject ( ) : object
set ( string $property, mixed $value = null ) : mixed

Private Methods

Method Description
accessingPropertyOnNonObject ( string $property ) : PhpSpec\Exception\Wrapper\SubjectException
callingMethodOnNonObject ( string $method ) : PhpSpec\Exception\Wrapper\SubjectException
classNotFound ( ) : PhpSpec\Exception\Fracture\ClassNotFoundException
detectMissingConstructorMessage ( ReflectionException $exception ) : boolean
instantiateWrappedObject ( ) : object
invokeAndWrapMethodResult ( object $subject, string $method, array $arguments = [] ) : Subject
isObjectMethodCallable ( string $method ) : boolean
isObjectPropertyReadable ( string $property ) : boolean
isObjectPropertyWritable ( string $property ) : boolean
lookingForConstants ( string $property ) : boolean
methodNotFound ( $method, array $arguments = [] ) : PhpSpec\Exception\Fracture\MethodNotFoundException | PhpSpec\Exception\Fracture\MethodNotVisibleException
namedConstructorNotFound ( string $method, array $arguments = [] ) : PhpSpec\Exception\Fracture\MethodNotFoundException | PhpSpec\Exception\Fracture\MethodNotVisibleException
newInstanceWithArguments ( ReflectionClass $reflection ) : object
newInstanceWithFactoryMethod ( ) : mixed
propertyNotFound ( string $property ) : PhpSpec\Exception\Fracture\PropertyNotFoundException
settingPropertyOnNonObject ( string $property ) : PhpSpec\Exception\Wrapper\SubjectException
wrap ( mixed $value ) : Subject

Method Details

__construct() public method

public __construct ( WrappedObject $wrappedObject, ExampleNode $example, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, ExceptionFactory $exceptions, Wrapper $wrapper, PhpSpec\CodeAnalysis\AccessInspector $accessInspector )
$wrappedObject WrappedObject
$example PhpSpec\Loader\Node\ExampleNode
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$exceptions PhpSpec\Exception\ExceptionFactory
$wrapper PhpSpec\Wrapper\Wrapper
$accessInspector PhpSpec\CodeAnalysis\AccessInspector

call() public method

public call ( string $method, array $arguments = [] ) : Subject
$method string
$arguments array
return PhpSpec\Wrapper\Subject

constantDefined() public method

public constantDefined ( string $property ) : boolean
$property string
return boolean

get() public method

public get ( string $property ) : Subject | string
$property string
return PhpSpec\Wrapper\Subject | string

getWrappedObject() public method

public getWrappedObject ( ) : object
return object

set() public method

public set ( string $property, mixed $value = null ) : mixed
$property string
$value mixed
return mixed