Class_Test
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
- testClassImplementingInterface() : void
- testClassWithParent() : void
- testCreateThrowsException() : void
- testCreateWithDocBlock() : void
- testIteratesStatements() : void
- testMatches() : void
- testSimpleCreate() : void
- setUp() : void
- buildClassMock() : MockInterface|Class_
- 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 —testClassImplementingInterface()
public
testClassImplementingInterface() : void
Tags
Return values
void —testClassWithParent()
public
testClassWithParent() : void
Tags
Return values
void —testCreateThrowsException()
public
testCreateThrowsException() : void
Tags
Return values
void —testCreateWithDocBlock()
public
testCreateWithDocBlock() : void
Tags
Return values
void —testIteratesStatements()
public
testIteratesStatements() : void
Tags
Return values
void —testMatches()
public
testMatches() : void
Tags
Return values
void —testSimpleCreate()
public
testSimpleCreate() : void
Tags
Return values
void —setUp()
protected
setUp() : void
Return values
void —buildClassMock()
private
buildClassMock() : MockInterface|Class_
Return values
MockInterface|Class_ —performCreate()
private
performCreate(Class_ $classMock, StrategyContainer $containerMock) : Class_
Parameters
- $classMock : Class_
- $containerMock : StrategyContainer