Documentation

DefineTest 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
ProjectFactoryStrategies
uses
Constant
uses
Visibility
covers
covers

Table of Contents

$fixture  : ProjectFactoryStrategy
$docBlockFactory  : ObjectProphecy
createContext()  : ContextStack
testCreate()  : void
testCreateGlobal()  : void
testCreateNamespace()  : void
testCreateThrowsException()  : void
testCreateWithDocBlock()  : void
testMatches()  : void
setUp()  : void
assertConstant()  : void
buildDefineStub()  : Expression

Properties

$docBlockFactory

private ObjectProphecy $docBlockFactory

Methods

testCreate()

public testCreate() : void
Return values
void

testCreateGlobal()

public testCreateGlobal() : void
Return values
void

testCreateNamespace()

public testCreateNamespace() : void
Return values
void

testCreateThrowsException()

public testCreateThrowsException() : void
Tags
covers
Return values
void

testCreateWithDocBlock()

public testCreateWithDocBlock() : void
Return values
void

testMatches()

public testMatches() : void
Return values
void

setUp()

protected setUp() : void
Return values
void

assertConstant()

private assertConstant(Constant $constant, string $namespace) : void
Parameters
$constant : Constant
$namespace : string
Return values
void

buildDefineStub()

private buildDefineStub([string $namespace = '' ]) : Expression
Parameters
$namespace : string = ''
Return values
Expression

Search results