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
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
$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
ContextStack —nodeProvider()
public
nodeProvider() : array<string, array<string|int, mixed>>
Return values
array<string, array<string|int, mixed>> —testCreateThrowsException()
public
testCreateThrowsException() : void
Tags
Return values
void —testFileGetsCommentFromFirstNode()
public
testFileGetsCommentFromFirstNode(Node $node, DocBlock $docblock) : void
Parameters
Tags
Return values
void —testMatches()
public
testMatches() : void
Tags
Return values
void —testMiddlewareIsChecked()
public
testMiddlewareIsChecked() : void
Return values
void —testMiddlewareIsExecuted()
public
testMiddlewareIsExecuted() : void
Tags
Return values
void —setUp()
protected
setUp() : void