Trait_Test
extends TestCase
in package
uses
ProphecyTrait
FinalYes
Base test case for all strategies, to be sure that they check if the can handle objects before handeling them.
Attributes
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\Trait_::class
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\Trait_::class
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\AbstractFactory::class
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Trait_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Method'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Visibility'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Property'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Factory\PropertyIterator'
Table of Contents
Properties
- $fixture : ProjectFactoryStrategy
- $docBlockFactory : ObjectProphecy
Methods
- createContext() : ContextStack
- testCreateThrowsException() : void
- testCreateWithDocBlock() : void
- testIteratesStatements() : void
- testMatches() : void
- testSimpleCreate() : void
- setUp() : void
- buildTraitMock() : MockInterface|Trait_
- performCreate() : Trait_
Properties
$fixture
protected
ProjectFactoryStrategy
$fixture
$docBlockFactory
private
ObjectProphecy
$docBlockFactory
Methods
createContext()
public
static createContext([Context|null $typeContext = null ]) : ContextStack
Parameters
- $typeContext : Context|null = null
Return values
ContextStacktestCreateThrowsException()
public
testCreateThrowsException() : void
testCreateWithDocBlock()
public
testCreateWithDocBlock() : void
testIteratesStatements()
public
testIteratesStatements() : void
testMatches()
public
testMatches() : void
testSimpleCreate()
public
testSimpleCreate() : void
setUp()
protected
setUp() : void
buildTraitMock()
private
buildTraitMock() : MockInterface|Trait_
Return values
MockInterface|Trait_performCreate()
private
performCreate(Trait_ $traitNode, StrategyContainer $containerMock) : Trait_
Parameters
- $traitNode : Trait_
- $containerMock : StrategyContainer