Interface_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
- testCreateThrowsException() : void
- testCreateWithDocBlock() : void
- testIteratesStatements() : void
- testMatches() : void
- testSimpleCreate() : void
- setUp() : void
- buildClassMock() : MockInterface|Interface_
- performCreate() : Interface_
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 —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|Interface_
Return values
MockInterface|Interface_ —performCreate()
private
performCreate(MockInterface $interfaceMock, StrategyContainer $containerMock) : Interface_
Parameters
- $interfaceMock : MockInterface
- $containerMock : StrategyContainer