PHP Class PhpSpec\Runner\Maintainer\CollaboratorsMaintainer

Inheritance: implements PhpSpec\Runner\Maintainer\MaintainerInterface
Afficher le fichier Open project: phpspec/phpspec Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Unwrapper $unwrapper, PhpSpec\Loader\Transformer\TypeHintIndex $typeHintIndex )
getPriority ( ) : integer
prepare ( ExampleNode $example, PhpSpec\Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators )
supports ( ExampleNode $example ) : boolean
teardown ( ExampleNode $example, PhpSpec\Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators )

Private Methods

Méthode Description
generateCollaborators ( CollaboratorManager $collaborators, ReflectionFunctionAbstract $function, ReflectionClass $classRefl )
getOrCreateCollaborator ( CollaboratorManager $collaborators, string $name ) : Collaborator
getParameterTypeFromIndex ( ReflectionClass $classRefl, ReflectionParameter $parameter ) : string
getParameterTypeFromReflection ( ReflectionParameter $parameter ) : string
isUnsupportedTypeHinting ( ReflectionParameter $parameter )
throwCollaboratorNotFound ( Exception $e, ReflectionParameter | null $parameter, string $className = null )

Method Details

__construct() public méthode

public __construct ( Unwrapper $unwrapper, PhpSpec\Loader\Transformer\TypeHintIndex $typeHintIndex )
$unwrapper PhpSpec\Wrapper\Unwrapper
$typeHintIndex PhpSpec\Loader\Transformer\TypeHintIndex

getPriority() public méthode

public getPriority ( ) : integer
Résultat integer

prepare() public méthode

public prepare ( ExampleNode $example, PhpSpec\Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators )
$example PhpSpec\Loader\Node\ExampleNode
$context PhpSpec\Specification
$matchers PhpSpec\Runner\MatcherManager
$collaborators PhpSpec\Runner\CollaboratorManager

supports() public méthode

public supports ( ExampleNode $example ) : boolean
$example PhpSpec\Loader\Node\ExampleNode
Résultat boolean

teardown() public méthode

public teardown ( ExampleNode $example, PhpSpec\Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators )
$example PhpSpec\Loader\Node\ExampleNode
$context PhpSpec\Specification
$matchers PhpSpec\Runner\MatcherManager
$collaborators PhpSpec\Runner\CollaboratorManager