Documentation

TestCollection
in package
implements Countable, IteratorAggregate

FinalYes
Tags
template-implements

IteratorAggregate<int, Test>

psalm-immutable
no-named-arguments

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

Table of Contents

Interfaces

Countable
IteratorAggregate

Properties

$tests  : array<string|int, mixed>

Methods

asArray()  : array<string|int, mixed>
count()  : int
fromArray()  : self
getIterator()  : TestCollectionIterator
__construct()  : mixed

Properties

$tests read-only

private array<string|int, mixed> $tests
Tags
psalm-var

list<Test>

Methods

asArray()

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

list<Test>

Return values
array<string|int, mixed>

fromArray()

public static fromArray(array<string|int, mixed> $tests) : self
Parameters
$tests : array<string|int, mixed>
Tags
psalm-param

list<Test> $tests

Return values
self

        
On this page

Search results