Documentation

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

$docBlockFactory

private ObjectProphecy $docBlockFactory

$nodesFactoryMock

private ObjectProphecy $nodesFactoryMock

Methods

nodeProvider()

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
$node : Node
$docblock : DocBlock
Attributes
#[DataProvider]
'nodeProvider'

testMatches()

public testMatches() : void

testMiddlewareIsChecked()

public testMiddlewareIsChecked() : void

testMiddlewareIsExecuted()

public testMiddlewareIsExecuted() : void

        
On this page

Search results