Documentation

TraitUseTest extends TestCase
in package

Base test case for all strategies, to be sure that they check if the can handle objects before handeling them.

Tags
coversDefaultClass

\phpDocumentor\Reflection\Php\Factory\TraitUse

covers

Table of Contents

$fixture  : ProjectFactoryStrategy
consumerProvider()  : array<string|int, array<string|int, mixed>>
createContext()  : ContextStack
testCreateThrowsException()  : void
testCreateThrowsExceptionWhenStackDoesNotContainClass()  : void
testCreateWillAddUsedTraitToContextTop()  : void
testMatchesOnlyTraitUseNode()  : void
setUp()  : void
givenTraitUse()  : TraitUse

Properties

Methods

consumerProvider()

public consumerProvider() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>

testCreateThrowsException()

public testCreateThrowsException() : void
Tags
covers
Return values
void

testCreateThrowsExceptionWhenStackDoesNotContainClass()

public testCreateThrowsExceptionWhenStackDoesNotContainClass() : void
Tags
covers
Return values
void

testCreateWillAddUsedTraitToContextTop()

public testCreateWillAddUsedTraitToContextTop(Class_|Trait_ $traitConsumer) : void
Parameters
$traitConsumer : Class_|Trait_
Tags
covers
dataProvider

consumerProvider

Return values
void

testMatchesOnlyTraitUseNode()

public testMatchesOnlyTraitUseNode() : void
Tags
covers
Return values
void

Search results