CollectionTest
extends PHPUnit_Framework_TestCase
in package
Test class for \Barryvdh\Reflection\DocBlock\Type\Collection
Tags
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
Return values
void —testAddMethodsAndProperties()
public
testAddMethodsAndProperties(string $fixture, array<string|int, mixed> $expected) : void
Parameters
- $fixture : string
- $expected : array<string|int, mixed>
Tags
Return values
void —testAddWithInvalidArgument()
public
testAddWithInvalidArgument() : void
Tags
Return values
void —testAddWithoutNamespace()
public
testAddWithoutNamespace(string $fixture, array<string|int, mixed> $expected) : void
Parameters
- $fixture : string
- $expected : array<string|int, mixed>
Tags
Return values
void —testConstruct()
public
testConstruct() : void
Tags
Return values
void —testConstructWithNamespace()
public
testConstructWithNamespace() : void
Tags
Return values
void —testConstructWithNamespaceAliases()
public
testConstructWithNamespaceAliases() : void
Tags
Return values
void —testConstructWithTypes()
public
testConstructWithTypes() : void