Function_Test
extends TestCase
in package
Uses
MetadataContainerTest
Base test case for all elements.
Tags
Table of Contents
- $fixture : Function_
- $fixture : Element|MetaDataContainer
- $docBlock : DocBlock
- $fqsen : Fqsen
- testAddAndGetArguments() : void
- testGetDefaultReturnType() : void
- testGetDocblock() : void
- testGetFqsen() : void
- testGetHasReturnByReference() : void
- testGetHasReturnByReferenceFromConstructor() : void
- testGetName() : void
- testGetReturnTypeFromConstructor() : void
- testLineAndColumnNumberIsReturnedWhenALocationIsProvided() : void
- testLineNumberIsMinusOneWhenNoneIsProvided() : void
- testSetMetaDataForNonExistingKey() : void
- testSetMetaDataWithExistingKeyThrows() : void
- assertLineAndColumnNumberIsReturnedWhenALocationIsProvided() : void
- setUp() : void
- Creates a new (empty) fixture object.
- getFixture() : MetaDataContainer
Properties
$fixture
public
Function_
$fixture
$fixture
protected
Element|MetaDataContainer
$fixture
$docBlock
private
DocBlock
$docBlock
$fqsen
private
Fqsen
$fqsen
Methods
testAddAndGetArguments()
public
testAddAndGetArguments() : void
Tags
Return values
void —testGetDefaultReturnType()
public
testGetDefaultReturnType() : void
Tags
Return values
void —testGetDocblock()
public
testGetDocblock() : void
Tags
Return values
void —testGetFqsen()
public
testGetFqsen() : void
Tags
Return values
void —testGetHasReturnByReference()
public
testGetHasReturnByReference() : void
Tags
Return values
void —testGetHasReturnByReferenceFromConstructor()
public
testGetHasReturnByReferenceFromConstructor() : void
Tags
Return values
void —testGetName()
public
testGetName() : void
Tags
Return values
void —testGetReturnTypeFromConstructor()
public
testGetReturnTypeFromConstructor() : void
Tags
Return values
void —testLineAndColumnNumberIsReturnedWhenALocationIsProvided()
public
testLineAndColumnNumberIsReturnedWhenALocationIsProvided() : void
Return values
void —testLineNumberIsMinusOneWhenNoneIsProvided()
public
testLineNumberIsMinusOneWhenNoneIsProvided() : void
Tags
Return values
void —testSetMetaDataForNonExistingKey()
public
testSetMetaDataForNonExistingKey() : void
Tags
Return values
void —testSetMetaDataWithExistingKeyThrows()
public
testSetMetaDataWithExistingKeyThrows() : void
Tags
Return values
void —assertLineAndColumnNumberIsReturnedWhenALocationIsProvided()
protected
assertLineAndColumnNumberIsReturnedWhenALocationIsProvided(Element|MetaDataContainer $fixture) : void
Parameters
- $fixture : Element|MetaDataContainer
Return values
void —setUp()
Creates a new (empty) fixture object.
protected
setUp() : void
Return values
void —getFixture()
private
getFixture() : MetaDataContainer