PHP 클래스 PhpSpec\Wrapper\Subject\Caller

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

공개 메소드들

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

비공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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 call ( string $method, array $arguments = [] ) : Subject
$method string
$arguments array
리턴 PhpSpec\Wrapper\Subject

constantDefined() 공개 메소드

public constantDefined ( string $property ) : boolean
$property string
리턴 boolean

get() 공개 메소드

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

getWrappedObject() 공개 메소드

public getWrappedObject ( ) : object
리턴 object

set() 공개 메소드

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