FileTest
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\File::class
- #[CoversClass]
- \phpDocumentor\Reflection\Php\Factory\AbstractFactory::class
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\File'
- #[UsesClass]
- '\phpDocumentor\Reflection\File\LocalFile'
- #[UsesClass]
- '\phpDocumentor\Reflection\Middleware\ChainFactory'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Class_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Trait_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Interface_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Function_'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Constant'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Visibility'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Factory\GlobalConstantIterator'
- #[UsesClass]
- '\phpDocumentor\Reflection\Types\NamespaceNodeToContext'
- #[UsesClass]
- '\phpDocumentor\Reflection\Php\Factory\File\CreateCommand'
Table of Contents
Properties
- $fixture : ProjectFactoryStrategy
- $docBlockFactory : ObjectProphecy
- $nodesFactoryMock : ObjectProphecy
Methods
- createContext() : ContextStack
- nodeProvider() : array<string, array<string|int, mixed>>
- testCreateThrowsException() : void
- testFileGetsCommentFromFirstNode() : void
- testMatches() : void
- testMiddlewareIsChecked() : void
- testMiddlewareIsExecuted() : void
- setUp() : void
Properties
$fixture
protected
ProjectFactoryStrategy
$fixture
$docBlockFactory
private
ObjectProphecy
$docBlockFactory
$nodesFactoryMock
private
ObjectProphecy
$nodesFactoryMock
Methods
createContext()
public
static createContext([Context|null $typeContext = null ]) : ContextStack
Parameters
- $typeContext : Context|null = null
Return values
ContextStacknodeProvider()
public
static nodeProvider() : array<string, array<string|int, mixed>>
Return values
array<string, array<string|int, mixed>>testCreateThrowsException()
public
testCreateThrowsException() : void
testFileGetsCommentFromFirstNode()
public
testFileGetsCommentFromFirstNode(Node $node, DocBlock $docblock) : void
Parameters
Attributes
- #[DataProvider]
- 'nodeProvider'
testMatches()
public
testMatches() : void
testMiddlewareIsChecked()
public
testMiddlewareIsChecked() : void
testMiddlewareIsExecuted()
public
testMiddlewareIsExecuted() : void
setUp()
protected
setUp() : void