Documentation

TraitUseTest extends TestCase
in package

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\TraitUse::class
#[CoversClass]
\phpDocumentor\Reflection\Php\Factory\AbstractFactory::class

Table of Contents

Properties

$fixture  : ProjectFactoryStrategy

Methods

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 static consumerProvider() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>

testCreateThrowsException()

public testCreateThrowsException() : void

testCreateThrowsExceptionWhenStackDoesNotContainClass()

public testCreateThrowsExceptionWhenStackDoesNotContainClass() : void

testCreateWillAddUsedTraitToContextTop()

public testCreateWillAddUsedTraitToContextTop(Class_|Trait_ $traitConsumer) : void
Parameters
$traitConsumer : Class_|Trait_
Attributes
#[DataProvider]
'consumerProvider'

testMatchesOnlyTraitUseNode()

public testMatchesOnlyTraitUseNode() : void

        
On this page

Search results