FileTest
extends TestCase
in package
uses
MetadataContainerTestHelper
FinalYes
Attributes
- #[CoversClass]
- \phpDocumentor\Reflection\Php\File::class
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Trait_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Interface_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Class_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Namespace_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Function_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Constant'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Visibility'
Table of Contents
Constants
- EXAMPLE_HASH = 'a-hash-string'
- EXAMPLE_NAME = 'a-path-string'
- EXAMPLE_PATH = 'example/' . self::EXAMPLE_NAME
- EXAMPLE_SOURCE = 'a-source-string'
Properties
Methods
- testAddAndGetClasses() : void
- testAddAndGetConstants() : void
- testAddAndGetEnums() : void
- testAddAndGetFunctions() : void
- testAddAndGetIncludes() : void
- testAddAndGetInterfaces() : void
- testAddAndGetTraits() : void
- testGetDocBlock() : void
- testGetHash() : void
- testGetName() : void
- testSetAndGetNamespaceAliases() : void
- testSetAndGetPath() : void
- testSetAndGetSource() : void
- testSetMetaDataForNonExistingKey() : void
- testSetMetaDataWithExistingKeyThrows() : void
- setUp() : void
- Creates a new (emoty) fixture object.
- getFixture() : MetaDataContainer
Constants
EXAMPLE_HASH
public
mixed
EXAMPLE_HASH
= 'a-hash-string'
EXAMPLE_NAME
public
mixed
EXAMPLE_NAME
= 'a-path-string'
EXAMPLE_PATH
public
mixed
EXAMPLE_PATH
= 'example/' . self::EXAMPLE_NAME
EXAMPLE_SOURCE
public
mixed
EXAMPLE_SOURCE
= 'a-source-string'
Properties
$fixture
protected
File
$fixture
$docBlock
private
DocBlock
$docBlock
Methods
testAddAndGetClasses()
public
testAddAndGetClasses() : void
testAddAndGetConstants()
public
testAddAndGetConstants() : void
testAddAndGetEnums()
public
testAddAndGetEnums() : void
testAddAndGetFunctions()
public
testAddAndGetFunctions() : void
testAddAndGetIncludes()
public
testAddAndGetIncludes() : void
testAddAndGetInterfaces()
public
testAddAndGetInterfaces() : void
testAddAndGetTraits()
public
testAddAndGetTraits() : void
testGetDocBlock()
public
testGetDocBlock() : void
testGetHash()
public
testGetHash() : void
testGetName()
public
testGetName() : void
testSetAndGetNamespaceAliases()
public
testSetAndGetNamespaceAliases() : void
testSetAndGetPath()
public
testSetAndGetPath() : void
testSetAndGetSource()
public
testSetAndGetSource() : void
testSetMetaDataForNonExistingKey()
public
testSetMetaDataForNonExistingKey() : void
testSetMetaDataWithExistingKeyThrows()
public
testSetMetaDataWithExistingKeyThrows() : void
setUp()
Creates a new (emoty) fixture object.
protected
setUp() : void
getFixture()
private
getFixture() : MetaDataContainer