Documentation

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
uses
PropertyIterator
uses
Property
uses
Visibility
uses
ProjectFactoryStrategies
uses
Type
covers
covers

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

$docBlockFactory

private ObjectProphecy $docBlockFactory

Methods

testCreateMultipleInOneStatement()

public testCreateMultipleInOneStatement() : void
Return values
void

testCreateThrowsException()

public testCreateThrowsException() : void
Tags
covers
Return values
void

testCreateWithDocBlock()

public testCreateWithDocBlock() : void
Return values
void

testCreateWithVisibility()

public testCreateWithVisibility(int $input, string $expectedVisibility) : void
Parameters
$input : int
$expectedVisibility : string
Tags
dataProvider

visibilityProvider

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[]>

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

Search results