ConstantTest
extends TestCase
in package
uses
MetadataContainerTestHelper
FinalYes
Base test case for all elements.
Attributes
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Constant::class
- #[UsesClass]
- '\phpDocumentor\Reflection\DocBlock'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Visibility'
- #[UsesClass]
- '\phpDocumentor\Reflection\Fqsen'
Table of Contents
Properties
Methods
- testGetDocblock() : void
- testGetFqsen() : void
- testGetValue() : void
- testGetVisibility() : void
- testIsFinal() : void
- testLineAndColumnNumberIsReturnedWhenALocationIsProvided() : void
- testLineNumberIsMinusOneWhenNoneIsProvided() : void
- testSetMetaDataForNonExistingKey() : void
- testSetMetaDataWithExistingKeyThrows() : void
- assertLineAndColumnNumberIsReturnedWhenALocationIsProvided() : void
- setUp() : void
- Creates a new (empty) fixture object.
- getFixture() : MetaDataContainer
Properties
$fixture
public
Constant
$fixture
$docBlock
private
DocBlock
$docBlock
$fqsen
private
Fqsen
$fqsen
$value
private
string
$value
= 'Value'
Methods
testGetDocblock()
public
testGetDocblock() : void
testGetFqsen()
public
testGetFqsen() : void
testGetValue()
public
testGetValue() : void
testGetVisibility()
public
testGetVisibility() : void
testIsFinal()
public
testIsFinal() : void
testLineAndColumnNumberIsReturnedWhenALocationIsProvided()
public
testLineAndColumnNumberIsReturnedWhenALocationIsProvided() : void
testLineNumberIsMinusOneWhenNoneIsProvided()
public
testLineNumberIsMinusOneWhenNoneIsProvided() : void
testSetMetaDataForNonExistingKey()
public
testSetMetaDataForNonExistingKey() : void
testSetMetaDataWithExistingKeyThrows()
public
testSetMetaDataWithExistingKeyThrows() : void
assertLineAndColumnNumberIsReturnedWhenALocationIsProvided()
protected
assertLineAndColumnNumberIsReturnedWhenALocationIsProvided(Element|MetaDataContainer $fixture) : void
Parameters
- $fixture : Element|MetaDataContainer
setUp()
Creates a new (empty) fixture object.
protected
setUp() : void
getFixture()
private
getFixture() : MetaDataContainer