Documentation

ConstructorPromotionTest 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\ConstructorPromotion::class

Table of Contents

Properties

$fixture  : ProjectFactoryStrategy
$docblockFactory  : ObjectProphecy
$strategy  : ObjectProphecy

Methods

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

testCreateThrowsException()

public testCreateThrowsException() : void

testCreateWithProperty()

public testCreateWithProperty(int $flags, string $visibility[, bool $readOnly = false ]) : void
Parameters
$flags : int
$visibility : string
$readOnly : bool = false
Attributes
#[DataProvider]
'visibilityProvider'

visibilityProvider()

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

        
On this page

Search results