Documentation

ConstructorPromotionTest extends TestCase
in package
Uses ProphecyTrait

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\ConstructorPromotion

Table of Contents

$fixture  : ProjectFactoryStrategy
$docblockFactory  : ObjectProphecy
$strategy  : ObjectProphecy
createContext()  : ContextStack
objectProvider()  : array<string|int, array<string|int, mixed>>
testCreateThrowsException()  : void
testCreateWithProperty()  : void
testMatches()  : void
visibilityProvider()  : array<string|int, array<string|int, mixed>>
setUp()  : void

Properties

Methods

objectProvider()

public objectProvider() : 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

testCreateWithProperty()

public testCreateWithProperty(int $flags, string $visibility[, bool $readOnly = false ]) : void
Parameters
$flags : int
$visibility : string
$readOnly : bool = false
Tags
covers
covers
covers
covers
dataProvider

visibilityProvider

Return values
void

testMatches()

public testMatches(ContextStack $context, object $object, bool $expected) : void
Parameters
$context : ContextStack
$object : object
$expected : bool
Tags
dataProvider

objectProvider

covers
covers
Return values
void

visibilityProvider()

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

Search results