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
$fixture
protected
ProjectFactoryStrategy
$fixture
$docblockFactory
private
ObjectProphecy
$docblockFactory
$strategy
private
ObjectProphecy
$strategy
Methods
createContext()
public
static createContext([Context|null $typeContext = null ]) : ContextStack
Parameters
- $typeContext : Context|null = null
Return values
ContextStackobjectProvider()
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'
testMatches()
public
testMatches(ContextStack $context, object $object, bool $expected) : void
Parameters
- $context : ContextStack
- $object : object
- $expected : bool
Attributes
- #[DataProvider]
- 'objectProvider'
visibilityProvider()
public
static visibilityProvider() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>setUp()
protected
setUp() : void