Documentation

CollectionTest extends PHPUnit_Framework_TestCase
in package

Test class for \Barryvdh\Reflection\DocBlock\Type\Collection

Tags
covers
author

Mike van Riel mike.vanriel@naenius.com

copyright

2010-2011 Mike van Riel / Naenius. (http://www.naenius.com)

license

http://www.opensource.org/licenses/mit-license.php MIT

link
http://phpdoc.org

Table of Contents

provideTypesToExpand()  : array<string|int, string>
Returns the types and their expected values to test the retrieval of types.
provideTypesToExpandWithoutNamespace()  : array<string|int, string>
Returns the types and their expected values to test the retrieval of types when no namespace is available.
provideTypesToExpandWithPropertyOrMethod()  : array<string|int, string>
Returns the method and property types and their expected values to test the retrieval of types.
testAdd()  : void
testAddMethodsAndProperties()  : void
testAddWithInvalidArgument()  : void
testAddWithoutNamespace()  : void
testConstruct()  : void
testConstructWithNamespace()  : void
testConstructWithNamespaceAliases()  : void
testConstructWithTypes()  : void

Methods

provideTypesToExpand()

Returns the types and their expected values to test the retrieval of types.

public provideTypesToExpand(string $method[, string $namespace = '\My\Space\' ]) : array<string|int, string>
Parameters
$method : string

Name of the method consuming this data provider.

$namespace : string = '\My\Space\'

Name of the namespace to user as basis.

Return values
array<string|int, string>

provideTypesToExpandWithoutNamespace()

Returns the types and their expected values to test the retrieval of types when no namespace is available.

public provideTypesToExpandWithoutNamespace(string $method) : array<string|int, string>
Parameters
$method : string

Name of the method consuming this data provider.

Return values
array<string|int, string>

provideTypesToExpandWithPropertyOrMethod()

Returns the method and property types and their expected values to test the retrieval of types.

public provideTypesToExpandWithPropertyOrMethod(string $method) : array<string|int, string>
Parameters
$method : string

Name of the method consuming this data provider.

Return values
array<string|int, string>

testAdd()

public testAdd(string $fixture, array<string|int, mixed> $expected) : void
Parameters
$fixture : string
$expected : array<string|int, mixed>
Tags
dataProvider

provideTypesToExpand

covers
Return values
void

testAddMethodsAndProperties()

public testAddMethodsAndProperties(string $fixture, array<string|int, mixed> $expected) : void
Parameters
$fixture : string
$expected : array<string|int, mixed>
Tags
dataProvider

provideTypesToExpandWithPropertyOrMethod

covers
Return values
void

testAddWithInvalidArgument()

public testAddWithInvalidArgument() : void
Tags
covers
expectedException

InvalidArgumentException

Return values
void

testAddWithoutNamespace()

public testAddWithoutNamespace(string $fixture, array<string|int, mixed> $expected) : void
Parameters
$fixture : string
$expected : array<string|int, mixed>
Tags
dataProvider

provideTypesToExpandWithoutNamespace

covers
Return values
void

testConstruct()

public testConstruct() : void
Tags
covers
covers
Return values
void

testConstructWithNamespace()

public testConstructWithNamespace() : void
Tags
covers
Return values
void

testConstructWithNamespaceAliases()

public testConstructWithNamespaceAliases() : void
Tags
covers
Return values
void

testConstructWithTypes()

public testConstructWithTypes() : void
Tags
covers
Return values
void

Search results