PropertyTest
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
- createContext() : ContextStack
- testCreateMultipleInOneStatement() : void
- testCreateThrowsException() : void
- testCreateWithDocBlock() : void
- testCreateWithVisibility() : void
- testMatches() : void
- visibilityProvider() : array<string|int, string|int[]>
- setUp() : void
- assertProperty() : void
- buildPropertyMock() : Property
- performCreate() : Class_
Properties
$fixture
protected
ProjectFactoryStrategy
$fixture
$docBlockFactory
private
ObjectProphecy
$docBlockFactory
Methods
createContext()
public
static createContext([Context|null $typeContext = null ]) : ContextStack
Parameters
- $typeContext : Context|null = null
Return values
ContextStack —testCreateMultipleInOneStatement()
public
testCreateMultipleInOneStatement() : void
Return values
void —testCreateThrowsException()
public
testCreateThrowsException() : void
Tags
Return values
void —testCreateWithDocBlock()
public
testCreateWithDocBlock() : void
Return values
void —testCreateWithVisibility()
public
testCreateWithVisibility(int $input, string $expectedVisibility) : void
Parameters
- $input : int
- $expectedVisibility : string
Tags
Return values
void —testMatches()
public
testMatches() : void
Return values
void —visibilityProvider()
public
visibilityProvider() : array<string|int, string|int[]>
Return values
array<string|int, string|int[]> —setUp()
protected
setUp() : void
Return values
void —assertProperty()
private
assertProperty(Property $property, string $visibility[, string $name = 'property' ][, string|null $default = ''MyDefault'' ]) : void
Parameters
- $property : Property
- $visibility : string
- $name : string = 'property'
- $default : string|null = ''MyDefault''
Return values
void —buildPropertyMock()
private
buildPropertyMock(int $modifier) : Property
Parameters
- $modifier : int
Return values
Property —performCreate()
private
performCreate(Property $property) : Class_
Parameters
- $property : Property