Documentation

TestDataCollection
in package
implements Countable, IteratorAggregate

FinalYes
Tags
template-implements

IteratorAggregate<int, TestData>

no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

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
psalm-var

list<TestData>

Methods

asArray()

public asArray() : array<string|int, mixed>
Tags
psalm-return

list<TestData>

Return values
array<string|int, mixed>

hasDataFromDataProvider()

public hasDataFromDataProvider() : bool
Tags
psalm-assert-if-true

!null $this->fromDataProvider

Return values
bool

        
On this page

Search results