TestDataCollection
in package
implements
Countable, IteratorAggregate
FinalYes
Tags
Table of Contents
Interfaces
- Countable
- IteratorAggregate
Properties
- $data : array<string|int, mixed>
- $fromDataProvider : DataFromDataProvider|null
Methods
- asArray() : array<string|int, mixed>
- count() : int
- dataFromDataProvider() : DataFromDataProvider
- fromArray() : self
- getIterator() : TestDataCollectionIterator
- hasDataFromDataProvider() : bool
- __construct() : mixed
- ensureNoMoreThanOneDataFromDataProvider() : void
Properties
$data read-only
private
array<string|int, mixed>
$data
Tags
$fromDataProvider
private
DataFromDataProvider|null
$fromDataProvider
= null
Methods
asArray()
public
asArray() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>count()
public
count() : int
Return values
intdataFromDataProvider()
public
dataFromDataProvider() : DataFromDataProvider
Tags
Return values
DataFromDataProviderfromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Tags
Return values
selfgetIterator()
public
getIterator() : TestDataCollectionIterator
Return values
TestDataCollectionIteratorhasDataFromDataProvider()
public
hasDataFromDataProvider() : bool
Tags
Return values
bool__construct()
private
__construct(TestData ...$data) : mixed
Parameters
- $data : TestData
Tags
ensureNoMoreThanOneDataFromDataProvider()
private
ensureNoMoreThanOneDataFromDataProvider(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>