MethodTest
extends TestCase
in package
uses
MetadataContainerTestHelper
FinalYes
Base test case for all elements.
Attributes
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Method::class
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Visibility'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Argument'
Table of Contents
Properties
Methods
- testAddingAndGettingArguments() : void
- testGetDefaultReturnType() : void
- testGetDefaultVisibility() : void
- testGetDocBlock() : void
- testGetFqsenAndGetName() : void
- testGetHasReturnByReference() : void
- testGetHasReturnByReferenceFromConstructor() : void
- testGetReturnTypeFromConstructor() : void
- testGettingVisibility() : void
- testGettingWhetherMethodIsAbstract() : void
- testGettingWhetherMethodIsFinal() : void
- testGettingWhetherMethodIsStatic() : void
- testLineAndColumnNumberIsReturnedWhenALocationIsProvided() : void
- testLineNumberIsMinusOneWhenNoneIsProvided() : void
- testSetMetaDataForNonExistingKey() : void
- testSetMetaDataWithExistingKeyThrows() : void
- assertLineAndColumnNumberIsReturnedWhenALocationIsProvided() : void
- setUp() : void
- getFixture() : MetaDataContainer
Properties
$fixture
public
Method
$fixture
$docblock
private
DocBlock
$docblock
$fqsen
private
Fqsen
$fqsen
$visibility
private
Visibility
$visibility
Methods
testAddingAndGettingArguments()
public
testAddingAndGettingArguments() : void
testGetDefaultReturnType()
public
testGetDefaultReturnType() : void
testGetDefaultVisibility()
public
testGetDefaultVisibility() : void
testGetDocBlock()
public
testGetDocBlock() : void
testGetFqsenAndGetName()
public
testGetFqsenAndGetName() : void
testGetHasReturnByReference()
public
testGetHasReturnByReference() : void
testGetHasReturnByReferenceFromConstructor()
public
testGetHasReturnByReferenceFromConstructor() : void
testGetReturnTypeFromConstructor()
public
testGetReturnTypeFromConstructor() : void
testGettingVisibility()
public
testGettingVisibility() : void
testGettingWhetherMethodIsAbstract()
public
testGettingWhetherMethodIsAbstract() : void
testGettingWhetherMethodIsFinal()
public
testGettingWhetherMethodIsFinal() : void
testGettingWhetherMethodIsStatic()
public
testGettingWhetherMethodIsStatic() : 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()
protected
setUp() : void
getFixture()
private
getFixture() : MetaDataContainer