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.
Attributes
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\Interface_::class
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\AbstractFactory::class
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Interface_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Constant'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Method'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Visibility'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Factory\ClassConstantIterator'
Table of Contents
Properties
- $fixture : ProjectFactoryStrategy
- $docBlockFactory : ObjectProphecy
Methods
- 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
ContextStacktestCreateThrowsException()
public
testCreateThrowsException() : void
testCreateWithDocBlock()
public
testCreateWithDocBlock() : void
testIteratesStatements()
public
testIteratesStatements() : void
testMatches()
public
testMatches() : void
testSimpleCreate()
public
testSimpleCreate() : void
setUp()
protected
setUp() : void
buildClassMock()
private
buildClassMock() : MockInterface|Interface_
Return values
MockInterface|Interface_performCreate()
private
performCreate(MockInterface $interfaceMock, StrategyContainer $containerMock) : Interface_
Parameters
- $interfaceMock : MockInterface
- $containerMock : StrategyContainer