DefineTest
extends TestCase
in package
uses
ProphecyTrait
FinalYes
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\Define::class
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\AbstractFactory::class
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\ProjectFactoryStrategies'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Constant'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Visibility'
Table of Contents
Properties
- $fixture : ProjectFactoryStrategy
- $docBlockFactory : ObjectProphecy
Methods
- createContext() : ContextStack
- testCreate() : void
- testCreateGlobal() : void
- testCreateNamespace() : void
- testCreateThrowsException() : void
- testCreateWithDocBlock() : void
- testMatches() : void
- setUp() : void
- assertConstant() : void
- buildDefineStub() : Expression
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
ContextStacktestCreate()
public
testCreate() : void
testCreateGlobal()
public
testCreateGlobal() : void
testCreateNamespace()
public
testCreateNamespace() : void
testCreateThrowsException()
public
testCreateThrowsException() : void
testCreateWithDocBlock()
public
testCreateWithDocBlock() : void
testMatches()
public
testMatches() : void
setUp()
protected
setUp() : void
assertConstant()
private
assertConstant(Constant $constant, string $namespace) : void
Parameters
- $constant : Constant
- $namespace : string
buildDefineStub()
private
buildDefineStub([string $namespace = '' ]) : Expression
Parameters
- $namespace : string = ''