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
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
$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
ContextStack —objectProvider()
public
objectProvider() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>> —testCreateThrowsException()
public
testCreateThrowsException() : void
Tags
Return values
void —testCreateWithProperty()
public
testCreateWithProperty(int $flags, string $visibility[, bool $readOnly = false ]) : void
Parameters
- $flags : int
- $visibility : string
- $readOnly : bool = false
Tags
Return values
void —testMatches()
public
testMatches(ContextStack $context, object $object, bool $expected) : void
Parameters
- $context : ContextStack
- $object : object
- $expected : bool
Tags
Return values
void —visibilityProvider()
public
visibilityProvider() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>> —setUp()
protected
setUp() : void