Skip to content

JsonLdTestIterator

  • Full name: \JsonLdTestIterator
  • This class implements: \Iterator

Properties

index

The current test index.

protected $index

count

The total number of tests.

protected $count

Methods

__construct

Creates a TestIterator.

public __construct(string $type): mixed

Parameters:

Parameter Type Description
$type string the type of tests to iterate over.

current

Gets the parameters for the next test.

public current(): \assoc

Return Value:

the parameters for the next test.


key

Gets the current test number.

public key(): int

Return Value:

the current test number.


next

Proceeds to the next test.

public next(): mixed

rewind

Rewinds to the first test.

public rewind(): mixed

valid

Returns true if there are more tests to be run.

public valid(): bool

Return Value:

true if there are more tests to be run.



Automatically generated on 2025-03-18