Documentation

Class_Test 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\Class_::class
#[CoversClass]
\phpDocumentor\Reflection\Php\Factory\AbstractFactory::class
#[UsesClass]
'\phpDocumentor\Reflection\Php\Class_'
#[UsesClass]
'\phpDocumentor\Reflection\Php\Constant'
#[UsesClass]
'\phpDocumentor\Reflection\Php\Property'
#[UsesClass]
'\phpDocumentor\Reflection\Php\Visibility'
#[UsesClass]
'\phpDocumentor\Reflection\Php\Method'
#[UsesClass]
'\phpDocumentor\Reflection\Php\Factory\ClassConstantIterator'
#[UsesClass]
'\phpDocumentor\Reflection\Php\Factory\PropertyIterator'

Table of Contents

Properties

$fixture  : ProjectFactoryStrategy
$docblockFactory  : ObjectProphecy

Methods

createContext()  : ContextStack
testClassImplementingInterface()  : void
testClassWithParent()  : void
testCreateThrowsException()  : void
testCreateWithDocBlock()  : void
testIteratesStatements()  : void
testMatches()  : void
testSimpleCreate()  : void
setUp()  : void
buildClassMock()  : MockInterface|Class_
performCreate()  : Class_

Properties

$docblockFactory

private ObjectProphecy $docblockFactory

Methods

testClassImplementingInterface()

public testClassImplementingInterface() : void

testClassWithParent()

public testClassWithParent() : void

testCreateThrowsException()

public testCreateThrowsException() : void

testCreateWithDocBlock()

public testCreateWithDocBlock() : void

testIteratesStatements()

public testIteratesStatements() : void

testSimpleCreate()

public testSimpleCreate() : void

        
On this page

Search results