Documentation

FileTest extends TestCase
in package
Uses ProphecyTrait

Base test case for all strategies, to be sure that they check if the can handle objects before handeling them.

Tags
uses
File
uses
File::matches
uses
LocalFile
uses
ChainFactory
uses
Class_
uses
Trait_
uses
Interface_
uses
Function_
uses
Constant
uses
Visibility
uses
GlobalConstantIterator
uses
NamespaceNodeToContext
uses
CreateCommand
coversDefaultClass

\phpDocumentor\Reflection\Php\Factory\File

covers
covers
covers

::

covers

::

Table of Contents

$fixture  : ProjectFactoryStrategy
$docBlockFactory  : ObjectProphecy
$nodesFactoryMock  : ObjectProphecy
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 nodeProvider() : array<string, array<string|int, mixed>>
Return values
array<string, array<string|int, mixed>>

testCreateThrowsException()

public testCreateThrowsException() : void
Tags
covers
Return values
void

testFileGetsCommentFromFirstNode()

public testFileGetsCommentFromFirstNode(Node $node, DocBlock $docblock) : void
Parameters
$node : Node
$docblock : DocBlock
Tags
covers
dataProvider

nodeProvider

Return values
void

testMatches()

public testMatches() : void
Tags
covers
Return values
void

testMiddlewareIsChecked()

public testMiddlewareIsChecked() : void
Return values
void

testMiddlewareIsExecuted()

public testMiddlewareIsExecuted() : void
Tags
covers
Return values
void

setUp()

protected setUp() : void
Return values
void

Search results